CryptoSys PKI Pro Manual

Cms.GetSigDataDigest Method

Extract the message digest from a signed-data CMS object file and verify the signature.

Syntax

[C#]
public static string GetSigDataDigest(
	string inputFile,
	string certFile
)
[VB.NET]
Public Shared Function GetSigDataDigest ( _
	inputFile As String, _
	certFile As String _
) As String

Parameters

inputFile
name of file containing CMS signed-data object
certFile
an (optional) X.509 certificate file to be used to identify the signer

Return Value

Hash value in hex format or an empty string if error

Remarks

If no certificate is given, it will use the first valid SignerInfo and certificate pair it finds in the SignedData. RSASSA-PKCS1V1_5 only.

See Also

VB6/C equivalent: CMS_GetSigDataDigest

[Contents] [Index]

[PREV: Cipher.Unpad Method (String, CipherAlgorithm, Padding)...]   [Contents]   [Index]   
   [NEXT: Cms.GetSigHashAlgorithm Method...]

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