Beispiel #1
0
 public void WriteAuthorizationInfo(TPMBlob target, AuthorizationInfo authInfo)
 {
     target.WriteUInt32 (authInfo.Handle.Handle);
     target.Write (authInfo.Handle.NonceOdd, 0, authInfo.Handle.NonceOdd.Length);
     target.WriteBool (authInfo.ContinueAuthSession);
     target.Write (authInfo.AuthData, 0, authInfo.AuthData.Length);
 }
        private AuthHandle[] AuthInfoToAuthHandle(AuthorizationInfo[] authInfos)
        {
            List<AuthHandle> authHandles = new List<AuthHandle>();

            foreach(AuthorizationInfo authInfo in authInfos)
                authHandles.Add(authInfo.Handle);

            return authHandles.ToArray();
        }