func (key *Key) SetModulus(n []byte) error {
	err := tspiError(C.Tspi_SetAttribData((C.TSS_HOBJECT)(key.handle), C.TSS_TSPATTRIB_RSAKEY_INFO, C.TSS_TSPATTRIB_KEYINFO_RSA_MODULUS, (C.UINT32)(len(n)), (*C.BYTE)(unsafe.Pointer(&n[0]))))
	return err
}
SetModulus sets the modulus of a public key to the provided value
package tspi
import "C"
import (
	"crypto/rsa"
	"crypto/sha1"
	"errors"
	"math/big"
	"unsafe"
)
func ModulusFromBlob(blob []byte) []byte {
	return blob[28:]
}
type Key struct {
	handle  C.TSS_HKEY
	context C.TSS_HCONTEXT
}
func (key *Key) GetPolicy(poltype int) (*Policy, error) {
	var policyHandle C.TSS_HPOLICY
	err := tspiError(C.Tspi_GetPolicyObject((C.TSS_HOBJECT)(key.handle), (C.TSS_FLAG)(poltype), &policyHandle))
	return &Policy{handle: policyHandle, context: key.context}, err
}