public void WriteToTpmBlob(TPMBlob blob) { blob.WriteByte(_major); blob.WriteByte(_minor); blob.WriteByte(_revMajor); blob.WriteByte(_revMinor); }
public void WriteToTpmBlob(TPMBlob blob) { ((ITPMBlobWritable)_version).WriteToTpmBlob(blob); blob.WriteUInt16((ushort)_keyUsage); blob.WriteUInt32((uint)_keyFlags); blob.WriteByte((byte)_authDataUsage); ((ITPMBlobWritable)_algorithmParams).WriteToTpmBlob(blob); //TODO: PCR info size blob.WriteUInt32(0); ((ITPMBlobWritable)_pubKey).WriteToTpmBlob(blob); blob.WriteUInt32((uint)_encData.Length); blob.Write(_encData, 0, _encData.Length); }
public void WriteToTpmBlob(TPMBlob blob) { ((ITPMBlobWritable)_version).WriteToTpmBlob(blob); blob.WriteByte((byte)_payloadType); blob.Write(_payload, 0, _payload.Length); }
public void WriteToTpmBlob(TPMBlob blob) { blob.WriteByte(_major); blob.WriteByte(_minor); blob.WriteUInt16(_reqSize); }