NegotiateAuthentication.VerifyIntegrityCheck Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies the message integrity check of a given message.
public:
bool VerifyIntegrityCheck(ReadOnlySpan<System::Byte> message, ReadOnlySpan<System::Byte> signature);
public bool VerifyIntegrityCheck (ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature);
member this.VerifyIntegrityCheck : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool
Public Function VerifyIntegrityCheck (message As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte)) As Boolean
Parameters
- message
- ReadOnlySpan<Byte>
Input message for MIC calculation.
- signature
- ReadOnlySpan<Byte>
MIC to be verified.
Returns
true
if the MIC is successfully verified, otherwise false
.
Exceptions
Authentication failed or has not occurred.
Remarks
Implements the GSSAPI VerifyMIC operation.
The method modifies the internal state and may update sequence numbers depending on the selected algorithm. Two successive invocations thus don't produce the same result and it's important to carefully pair GetMIC and VerifyMIC calls on the both sides of the authenticated session.