Freigeben über


SignatureProvider.Verify Method

Definition

Overloads

Verify(Byte[], Byte[])

Verifies that the signature over input using the SecurityKey and Algorithm specified by this SignatureProvider are consistent.

Verify(Byte[], Int32, Int32, Byte[], Int32, Int32)

Verifies that a signature created over the 'input' matches the signature. Using SecurityKey and 'algorithm' passed to SignatureProvider(SecurityKey, String).

Verify(Byte[], Byte[])

Verifies that the signature over input using the SecurityKey and Algorithm specified by this SignatureProvider are consistent.

public abstract bool Verify (byte[] input, byte[] signature);
abstract member Verify : byte[] * byte[] -> bool
Public MustOverride Function Verify (input As Byte(), signature As Byte()) As Boolean

Parameters

input
Byte[]

the bytes that were signed.

signature
Byte[]

signature to compare against.

Returns

true if the computed signature matches the signature parameter, false otherwise.

Applies to

Verify(Byte[], Int32, Int32, Byte[], Int32, Int32)

Verifies that a signature created over the 'input' matches the signature. Using SecurityKey and 'algorithm' passed to SignatureProvider(SecurityKey, String).

public virtual bool Verify (byte[] input, int inputOffset, int inputLength, byte[] signature, int signatureOffset, int signatureLength);
abstract member Verify : byte[] * int * int * byte[] * int * int -> bool
override this.Verify : byte[] * int * int * byte[] * int * int -> bool
Public Overridable Function Verify (input As Byte(), inputOffset As Integer, inputLength As Integer, signature As Byte(), signatureOffset As Integer, signatureLength As Integer) As Boolean

Parameters

input
Byte[]

The bytes to verify.

inputOffset
Int32

offset in to input bytes to caculate hash.

inputLength
Int32

number of bytes of signature to use.

signature
Byte[]

signature to compare against.

signatureOffset
Int32

offset into signature array.

signatureLength
Int32

how many bytes to verfiy.

Returns

true if computed signature matches the signature parameter, false otherwise.

Exceptions

'signature' is null.

'offset + length > input.Length'

Applies to