コード例 #1
0
 public void ReadFromTpmBlob(TPMBlob blob)
 {
     _major    = blob.ReadByte();
     _minor    = blob.ReadByte();
     _revMajor = blob.ReadByte();
     _revMinor = blob.ReadByte();
 }
コード例 #2
0
            public void ReadFromTpmBlob(TPMBlob blob)
            {
                /*uint responseSize = */ blob.ReadUInt32();

                this._tag         = blob.ReadUInt16();
                this._version     = new TPMVersionCore(blob);
                this._specLevel   = blob.ReadUInt16();
                this._errataRev   = blob.ReadByte();
                this._tpmVendorId = new byte[4];
                blob.Read(_tpmVendorId, 0, _tpmVendorId.Length);

                ushort vendorSize = blob.ReadUInt16();

                _vendorSpecific = blob.ReadBytes(vendorSize);
            }
コード例 #3
0
        public void ReadFromTpmBlob(TPMBlob blob)
        {
            _version         = CapabilityDataCore.TPMVersionCore.CreateFromTPMBlob(blob);
            _keyUsage        = (TPMKeyUsage)blob.ReadUInt16();
            _keyFlags        = (TPMKeyFlags)blob.ReadUInt32();
            _authDataUsage   = (TPMAuthDataUsage)blob.ReadByte();
            _algorithmParams = TPMKeyParamsCore.CreateFromTPMBlob(blob);

            uint pcrInfoSize = blob.ReadUInt32();

            /*byte[] pcrInfo =*/ blob.ReadBytes((int)pcrInfoSize);

            _pubKey = TPMStorePubkeyCore.CreateFromTpmBlob(blob);

            uint encDataSize = blob.ReadUInt32();

            _encData = blob.ReadBytes((int)encDataSize);
        }