다음을 통해 공유


AsymmetricSignatureProvider.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 override bool Verify (byte[] input, byte[] signature);
override this.Verify : byte[] * byte[] -> bool
Public Overrides Function Verify (input As Byte(), signature As Byte()) As Boolean

Parameters

input
Byte[]

The bytes to generate the signature over.

signature
Byte[]

The value to verify against.

Returns

true if signature matches, false otherwise.

Exceptions

Thrown if signature is null or has length of 0.

Thrown if Dispose(Boolean) has been called.

Remarks

Verify is thread safe.

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 override bool Verify (byte[] input, int inputOffset, int inputLength, byte[] signature, int signatureOffset, int signatureLength);
override this.Verify : byte[] * int * int * byte[] * int * int -> bool
Public Overrides 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.

Applies to