Tpm2Lib.Tpm2.NvReadPublic C# (CSharp) 메소드

NvReadPublic() 개인적인 메소드

private NvReadPublic ( TpmHandle nvIndex, [ nvName ) : NvPublic
nvIndex TpmHandle
nvName [
리턴 NvPublic
        public NvPublic NvReadPublic(
            TpmHandle nvIndex,
            [SuppressMessage("Microsoft.Design", "CA1021")]
            out byte[] nvName
        )
        {
            Tpm2NvReadPublicRequest inS = new Tpm2NvReadPublicRequest();
            inS.nvIndex = nvIndex;
            TpmStructureBase outSBase;
            DispatchMethod(TpmCc.NvReadPublic, (TpmStructureBase) inS, typeof(Tpm2NvReadPublicResponse), out outSBase, 1, 0);
            Tpm2NvReadPublicResponse outS = (Tpm2NvReadPublicResponse) outSBase;
            nvName = outS.nvName;
            return outS.nvPublic;
        }
        /// <summary>

Usage Example

예제 #1
0
        /// <summary>
        /// Returns the cached name of an entity referenced by this handle. If the
        /// name is not cached yet, retrieves it from the TPM (for a transient or
        /// persistent object, or NV index) or computes it (for session, PCR or
        /// permanent handles).
        /// </summary>
        public byte[] GetName(Tpm2 tpm)
        {
            Ht ht = GetType();

            if (_Name == null)
            {
                if (ht == Ht.NvIndex)
                {
                    tpm.NvReadPublic(this, out _Name);
                    return(_Name);
                }
                if (ht == Ht.Transient || ht == Ht.Persistent)
                {
                    byte[] qName;
                    tpm.ReadPublic(this, out _Name, out qName);
                    return(_Name);
                }
            }
            return(GetName());
        }
All Usage Examples Of Tpm2Lib.Tpm2::NvReadPublic
Tpm2