Επεξεργασία

Κοινή χρήση μέσω


NegotiateAuthentication.ComputeIntegrityCheck Method

Definition

Computes the integrity check of a given message.

public:
 void ComputeIntegrityCheck(ReadOnlySpan<System::Byte> message, System::Buffers::IBufferWriter<System::Byte> ^ signatureWriter);
public void ComputeIntegrityCheck (ReadOnlySpan<byte> message, System.Buffers.IBufferWriter<byte> signatureWriter);
member this.ComputeIntegrityCheck : ReadOnlySpan<byte> * System.Buffers.IBufferWriter<byte> -> unit
Public Sub ComputeIntegrityCheck (message As ReadOnlySpan(Of Byte), signatureWriter As IBufferWriter(Of Byte))

Parameters

message
ReadOnlySpan<Byte>

Input message for MIC calculation.

signatureWriter
IBufferWriter<Byte>

Buffer writer where the MIC is written.

Exceptions

Authentication failed or has not occurred.

Remarks

Implements the GSSAPI GetMIC 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