CryptoSys PKI Pro Manual

Sig.VerifyFile Method (String, String, String, SigAlgorithm)

Verify a signature value over data in a file.

Syntax

[C#]
public static int VerifyFile(
	string sigStr,
	string dataFile,
	string certOrKeyFile,
	SigAlgorithm sigAlg
)
[VB.NET]
Public Shared Function VerifyFile ( _
	sigStr As String, _
	dataFile As String, _
	certOrKeyFile As String, _
	sigAlg As SigAlgorithm _
) As Integer

Parameters

sigStr
Containing the encoded signature value
dataFile
Name of file containing 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.

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_VerifyFile

[Contents] [Index]

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

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