public TpmPrivate ObjectChangeAuth( TpmHandle objectHandle, TpmHandle parentHandle, byte[] newAuth ) { Tpm2ObjectChangeAuthRequest inS = new Tpm2ObjectChangeAuthRequest(); inS.objectHandle = objectHandle; inS.parentHandle = parentHandle; inS.newAuth = newAuth; TpmStructureBase outSBase; DispatchMethod(TpmCc.ObjectChangeAuth, (TpmStructureBase) inS, typeof(Tpm2ObjectChangeAuthResponse), out outSBase, 2, 0); Tpm2ObjectChangeAuthResponse outS = (Tpm2ObjectChangeAuthResponse) outSBase; return outS.outPrivate; }
public Tpm2ObjectChangeAuthRequest(Tpm2ObjectChangeAuthRequest the_Tpm2ObjectChangeAuthRequest) { if((Object) the_Tpm2ObjectChangeAuthRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); objectHandle = the_Tpm2ObjectChangeAuthRequest.objectHandle; parentHandle = the_Tpm2ObjectChangeAuthRequest.parentHandle; newAuth = the_Tpm2ObjectChangeAuthRequest.newAuth; }