CryptoSys PKI Pro Manual

Sig.VerifyFile Method

Verify a signature value over data in a file.

Syntax

[C#]
public static int VerifyFile(
   string sigStr,
   string dataFile,
   string certOrKeyFile,
   SigAlgorithm sigAlg,
   Sig.VerifyOpts opts = Sig.VerifyOpts.Default 
)
[VB]
Public Shared Function VerifyFile (
   sigStr As String,
   dataFile As String,
   certOrKeyFile As String,
   sigAlg As SigAlgorithm,
   Optional opts As Sig.VerifyOpts = Sig.VerifyOpts.Default 
) As Integer

Parameters

sigStr  String
Containing the encoded signature value
dataFile  String
Name of file containing 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  Sig.VerifyOpts  (Optional)
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_VerifyFile

[Contents] [Index]

[PREV: Sig.VerifyDigest Method...]   [Contents]   [Index]   
   [NEXT: Smime.Extract Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-17T11:18:15Z.