mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-24 03:50:57 +00:00
PPAP integration
This commit is contained in:
1 parent
ba64a0c95a
commit
4cd9f928ff
36 files changed
+6586
-656
No files matched your search
@@ -26,7 +26,17 @@ namespace Esiur.Security.Authority
|
||||
LocalIdentity = localIdentity;
|
||||
RemoteIdentity = remoteIdentity;
|
||||
AuthenticationData = authenticationData;
|
||||
SessionKey = sessionKey;
|
||||
// AuthenticationResult owns its key buffer. This lets transports erase the
|
||||
// short-lived handoff copy after adopting their own session key without
|
||||
// mutating provider-wide or cached key material.
|
||||
SessionKey = sessionKey == null ? null : (byte[])sessionKey.Clone();
|
||||
}
|
||||
|
||||
internal void ClearSessionKey()
|
||||
{
|
||||
if (SessionKey != null)
|
||||
Array.Clear(SessionKey, 0, SessionKey.Length);
|
||||
SessionKey = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user