PGPBase..::..VerifyData Method
Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and padding, and comparing it to the provided signature.
Namespace:
Walter.Cypher.PGPAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
public bool VerifyData( byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding )
Parameters
- data
- Type: array<Byte>[]()[][]
The signed data.
- offset
- Type: Int32
The starting index at which to compute the hash.
- count
- Type: Int32
The number of bytes to hash.
- signature
- Type: array<Byte>[]()[][]
The signature data to be verified.
- hashAlgorithm
- Type: HashAlgorithmName
The hash algorithm used to create the hash value of the data.
- padding
- Type: RSASignaturePadding
The padding mode.