SymmetricSignatureProvider.Verify Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Verify(Byte[], Byte[]) |
Verifies that a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider(SecurityKey, String). |
Verify(Byte[], Byte[], Int32) |
Verifies that a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider(SecurityKey, String). |
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 a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider(SecurityKey, String).
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 verify.
- signature
- Byte[]
signature to compare against.
Returns
true if computed signature matches the signature parameter, false otherwise.
Exceptions
'signature' is null.
'signature.Length' == 0.
Dispose(Boolean) has been called.
If the internal KeyedHashAlgorithm is null. This can occur if a derived type deletes it or does not create it.
Remarks
Verify is thread safe.
Applies to
Verify(Byte[], Byte[], Int32)
Verifies that a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider(SecurityKey, String).
public bool Verify (byte[] input, byte[] signature, int length);
override this.Verify : byte[] * byte[] * int -> bool
Public Function Verify (input As Byte(), signature As Byte(), length As Integer) As Boolean
Parameters
- input
- Byte[]
The bytes to verify.
- signature
- Byte[]
signature to compare against.
- length
- Int32
number of bytes of signature to use.
Returns
true if computed signature matches the signature parameter, false otherwise.
Exceptions
'signature' is null.
'length < 1'
Dispose(Boolean) has been called.
If the internal KeyedHashAlgorithm is null. This can occur if a derived type deletes it or does not create it.
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.