Ejemplo n.º 1
0
 public ResponseAuthHandleInfoCore(TPMBlob blob, long startIndex)
 {
     blob.Seek(startIndex, SeekOrigin.Begin);
     _nonceEven           = blob.ReadBytes(20);
     _continueAuthSession = blob.ReadBool();
     _tpmAuthData         = blob.ReadBytes(20);
 }
Ejemplo n.º 2
0
        private bool ReadBoolResponse(TPMBlob response)
        {
            uint responseSize = response.ReadUInt32();

            if (responseSize != 1)
            {
                throw new TPMResponseException(string.Format("Capability response size mismatch (should be 1, and is {0})", responseSize));
            }

            return(response.ReadBool());
        }