CryptoSys PKI Pro Manual

Sig.VerifyData Method (String, Byte[], String, SigAlgorithm, Sig.VerifyOpts)

Verify a signature value over data in a byte array with advanced options.

Syntax

[C#]
public static int VerifyData(
	string sigStr,
	byte[] data,
	string certOrKeyFile,
	SigAlgorithm sigAlg,
	Sig.VerifyOpts opts
)
[VB.NET]
Public Shared Function VerifyData ( _
	sigStr As String, _
	data As Byte(), _
	certOrKeyFile As String, _
	sigAlg As SigAlgorithm, _
	opts As Sig.VerifyOpts _
) As Integer

Parameters

sigStr
Encoded signature value
data
Input data to be verified
certOrKeyFile
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

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]

[PREV: Sig.VerifyData Method (String, Byte, String, SigAlgorithm)...]   [Contents]   [Index]   
   [NEXT: Sig.VerifyDigest Method (String, Byte, String, SigAlgorithm)...]

Copyright © 2004-21 D.I. Management Services Pty Ltd. All rights reserved. Generated 2021-10-01T09:03:20Z.