Inheritance: TpmStructureBase
Esempio n. 1
0
 public byte[] RsaEncrypt(
     TpmHandle keyHandle,
     byte[] message,
     IAsymSchemeUnion inScheme,
     byte[] label
 )
 {
     Tpm2RsaEncryptRequest inS = new Tpm2RsaEncryptRequest();
     inS.keyHandle = keyHandle;
     inS.message = message;
     inS.inScheme = inScheme;
     inS.label = label;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.RsaEncrypt, (TpmStructureBase) inS, typeof(Tpm2RsaEncryptResponse), out outSBase, 1, 0);
     Tpm2RsaEncryptResponse outS = (Tpm2RsaEncryptResponse) outSBase;
     return outS.outData;
 }
Esempio n. 2
0
 public Tpm2RsaEncryptRequest(Tpm2RsaEncryptRequest the_Tpm2RsaEncryptRequest)
 {
     if((Object) the_Tpm2RsaEncryptRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     keyHandle = the_Tpm2RsaEncryptRequest.keyHandle;
     message = the_Tpm2RsaEncryptRequest.message;
     label = the_Tpm2RsaEncryptRequest.label;
 }