Inheritance: TpmStructureBase
示例#1
0
 public TpmPrivate Rewrap(
     TpmHandle oldParent,
     TpmHandle newParent,
     TpmPrivate inDuplicate,
     byte[] name,
     byte[] inSymSeed,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out byte[] outSymSeed
 )
 {
     Tpm2RewrapRequest inS = new Tpm2RewrapRequest();
     inS.oldParent = oldParent;
     inS.newParent = newParent;
     inS.inDuplicate = inDuplicate;
     inS.name = name;
     inS.inSymSeed = inSymSeed;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.Rewrap, (TpmStructureBase) inS, typeof(Tpm2RewrapResponse), out outSBase, 2, 0);
     Tpm2RewrapResponse outS = (Tpm2RewrapResponse) outSBase;
     outSymSeed = outS.outSymSeed;
     return outS.outDuplicate;
 }
示例#2
0
 public Tpm2RewrapRequest(Tpm2RewrapRequest the_Tpm2RewrapRequest)
 {
     if((Object) the_Tpm2RewrapRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     oldParent = the_Tpm2RewrapRequest.oldParent;
     newParent = the_Tpm2RewrapRequest.newParent;
     inDuplicate = the_Tpm2RewrapRequest.inDuplicate;
     name = the_Tpm2RewrapRequest.name;
     inSymSeed = the_Tpm2RewrapRequest.inSymSeed;
 }