Inheritance: TpmStructureBase
Example #1
0
 public byte[] RsaDecrypt(
     TpmHandle keyHandle,
     byte[] cipherText,
     IAsymSchemeUnion inScheme,
     byte[] label
 )
 {
     Tpm2RsaDecryptRequest inS = new Tpm2RsaDecryptRequest();
     inS.keyHandle = keyHandle;
     inS.cipherText = cipherText;
     inS.inScheme = inScheme;
     inS.label = label;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.RsaDecrypt, (TpmStructureBase) inS, typeof(Tpm2RsaDecryptResponse), out outSBase, 1, 0);
     Tpm2RsaDecryptResponse outS = (Tpm2RsaDecryptResponse) outSBase;
     return outS.message;
 }
Example #2
0
 public Tpm2RsaDecryptRequest(Tpm2RsaDecryptRequest the_Tpm2RsaDecryptRequest)
 {
     if((Object) the_Tpm2RsaDecryptRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     keyHandle = the_Tpm2RsaDecryptRequest.keyHandle;
     cipherText = the_Tpm2RsaDecryptRequest.cipherText;
     label = the_Tpm2RsaDecryptRequest.label;
 }