Click or drag to resize

SigVerifyData Method

Verify a signature value over data in a byte array.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int VerifyData(
	string sigStr,
	byte[] data,
	string certOrKeyFile,
	SigAlgorithm sigAlg,
	SigVerifyOpts opts = SigVerifyOpts.Default
)

Parameters

sigStr  String
Encoded signature value
data  Byte
Input data to be verified
certOrKeyFile  String
The X.509 certificate or public key file name (or a string containing the certificate or key in PEM format or base64 representation, or an internal key string).
sigAlg  SigAlgorithm
Signature algorithm used to create signature.
opts  SigVerifyOpts  (Optional)
(optional) Advanced options for RSA-PSS only.

Return Value

Int32
Zero (0) if the signature is valid; otherwise a negative error code.
Remarks
Any valid encodings of the signature value are detected automatically.
See Also