CryptoSys PKI Toolkit Manual

Cms.GetSigHashAlgorithm Method

Finds message digest hash algorithm used to make signature

Syntax

[C#]
public static int GetSigHashAlgorithm(
	string inputFile,
	string certFile,
	bool inputIsBase64
)
[VB.NET]
Public Shared Function GetSigHashAlgorithm ( _
	inputFile As String, _
	certFile As String, _
	inputIsBase64 As Boolean _
) As Integer

Parameters

inputFile
file containing CMS signed-data object
certFile
an (optional) X.509 certificate file to be used to identify the signer
inputIsBase64
true if input is in base64 encoding; false for binary BER-encoded

Return Value

0=SHA-1, 1=MD5, 2=MD2; or a negative error code

[Contents] [Index]

[HOME]   [NEXT: Cms.MakeDetachedSig Method...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.