Tpm2Lib.TpmHandle.SetName C# (CSharp) Method

SetName() public method

Associates the name with the handle. Only needed for transient, persistent and NV handles. Normally this association is done automatically either by TPM commands producing the corresponding handle, or when the handle is passed as a parameter to a command requiring HMAC authorization (the name is implicitly requested from the TPM by means of TPM2_ReadPublic or TPM2_NV_ReadPublic commands). Thus this method has to be used only either when Tpm2 object is in the strict mode (i.e. it is prohibited to issue commands not explicitly requested by the user), or for the sake of performance optimization (if the client code has the name pre-computed).
public SetName ( byte name ) : TpmHandle
name byte
return TpmHandle
        public TpmHandle SetName(byte[] name)
        {
            _Name = Globs.CopyData(name);
            return this;
        }