public ResponseAuthHandleInfoCore(TPMBlob blob, long startIndex) { blob.Seek(startIndex, SeekOrigin.Begin); _nonceEven = blob.ReadBytes(20); _continueAuthSession = blob.ReadBool(); _tpmAuthData = blob.ReadBytes(20); }
public void ReadFromTpmBlob(TPMBlob blob) { _tag = (TPMStructureTag)blob.ReadUInt16(); _resourceType = (TPMResourceType)blob.ReadUInt32(); _handle = blob.ReadUInt32(); _label = blob.ReadBytes(16); _contextCount = blob.ReadUInt32(); _integrityDigest = blob.ReadBytes(20); uint additionalSize = blob.ReadUInt32(); _additionalData = blob.ReadBytes((int)additionalSize); uint sensitiveSize = blob.ReadUInt32(); _sensitiveData = blob.ReadBytes((int)sensitiveSize); }
public void ReadFromTpmBlob(TPMBlob blob) { _pcrSelection = TPMPCRSelectionCore.CreateFromTPMBlob(blob); uint valueSize = blob.ReadUInt32(); _pcrValues = new byte[valueSize/20][]; for(int i = 0; i<valueSize/20; i++) _pcrValues[i] = blob.ReadBytes(20); }
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); }
public void ReadFromTpmBlob(TPMBlob blob) { _structureTag = (TPMStructureTag)blob.ReadUInt16(); _label = blob.ReadBytes(4); _counterValue = blob.ReadUInt32(); }
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); }
public void ReadFromTpmBlob(TPMBlob blob) { uint keyLength = blob.ReadUInt32 (); _pubkey = blob.ReadBytes ((int)keyLength); }