Verify a signature value over a message digest value of data.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int VerifyDigest(
string sigStr,
byte[] digest,
string certOrKeyFile,
SigAlgorithm sigAlg,
SigVerifyOpts opts = SigVerifyOpts.Default
)
Public Shared Function VerifyDigest (
sigStr As String,
digest As Byte(),
certOrKeyFile As String,
sigAlg As SigAlgorithm,
Optional opts As SigVerifyOpts = SigVerifyOpts.Default
) As Integer
Parameters
- sigStr String
- Containing the encoded signature value
- digest Byte
- Byte array containing the message digest value of the data to be verified
- certOrKeyFile String
- Specifying 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)
- Advanced options for RSA-PSS only (optional)
Return Value
Int32Zero (0) if the signature is valid; otherwise a negative
error code.
RemarksAny valid encodings of the signature value are detected automatically.
See Also