Sig.VerifyDigest Method
Verify a signature value over a message digest value of data.
Syntax
[C#]
public static int VerifyDigest(
string sigStr,
byte[] digest,
string certOrKeyFile,
SigAlgorithm sigAlg,
Sig.VerifyOpts opts
)
[VB.NET]
Public Shared Function VerifyDigest ( _
sigStr As String, _
digest As Byte(), _
certOrKeyFile As String, _
sigAlg As SigAlgorithm, _
opts As Sig.VerifyOpts _
) As Integer
Parameters
- sigStr
- Containing the encoded signature value
- digest
- Byte array containing the message digest value of the data to be verified
- certOrKeyFile
- 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
- Type: SigAlgorithm
Signature algorithm used to create signature.
- opts
- Type: Sig.VerifyOpts
Advanced options for RSA-PSS only (optional)
Return Value
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
VB6/C equivalent: SIG_VerifyData
[Contents] [Index]