Tpm2Lib.NvPublic.GetName C# (CSharp) Method

GetName() public method

Calculate and return the name of the entity. The name is an alg-prepended hash in a byte[]
public GetName ( ) : byte[]
return byte[]
        public byte[] GetName()
        {
            byte[] rawData = GetTpmRepresentation();
            TpmHash pubDigest = TpmHash.FromData(nameAlg, rawData);
            return Marshaller.GetTpmRepresentation(pubDigest);
        }
    }