Share via


KeyVaultSignatureProvider.Verify Method

Definition

Overloads

Verify(Byte[], Byte[])

Verifies that the signature is over input using Azure Key Vault.

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 is over input using Azure Key Vault.

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[]

bytes to verify.

signature
Byte[]

signature to compare against.

Returns

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

Exceptions

signature is null or has length == 0.

If Dispose has been called.

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 lengthOffset, 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, lengthOffset 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.

lengthOffset
Int32
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