NegotiateAuthentication.VerifyIntegrityCheck Method

Definition

Verifies the message integrity check of a given message.

C#
public bool VerifyIntegrityCheck(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature);

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.

Applies to

Product Versions
.NET 9