CryptoSys PKI Pro Manual

PFX_VerifySig

Verifies the signature in a pkcs-12 file.

VBA/VB6 Syntax

Public Declare Function PFX_VerifySig Lib "diCrPKI.dll" (ByVal strPfxFile As String, ByVal strPassword As String, ByVal nOptions As Long) As Long

nRet = PFX_VerifySig(strPfxFile, strPassword, nOptions)

C/C++ Syntax

long __stdcall PFX_VerifySig(const char *szFileName, const char *szPassword, long nOptions);

Parameters

szFileName
[in] specifies the PKCS-12 filename to be checked.
szPassword
[in] containing the password.
nOptions
[in] option flags: not used in this release. Specify zero.

Returns (VBA/C)

If successful, the return value is zero; otherwise it returns a nonzero error code.

.NET Equivalent

Pfx.SignatureIsValid Method

Python Equivalent

static Pfx.sig_is_valid(pfxfile, password)

Remarks

Just checks that the MacData signature is OK using the given password. Makes no other checks. The PFX file can be in either BER-encoded binary or PEM format. You can also pass the data directly as a PEM string in the szPfxFile parameter.

[New in v3.8] If there is no MacData signature in the PFX file and the supplied szPassword is empty, it will consider that to be a "valid" signature and return zero.

Example

See the example for PFX_MakeFile above.

See Also

PFX_MakeFile RSA_GetPrivateKeyFromPFX

[Contents] [Index]

[PREV: PFX_MakeFile...]   [Contents]   [Index]   
   [NEXT: PKI_CompileTime...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.