Exemple #1
0
 public ResponseAuthHandleInfoCore(TPMBlob blob, long startIndex)
 {
     blob.Seek(startIndex, SeekOrigin.Begin);
     _nonceEven           = blob.ReadBytes(20);
     _continueAuthSession = blob.ReadBool();
     _tpmAuthData         = blob.ReadBytes(20);
 }
        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());
        }