CryptoSys PKI Toolkit Manual

Cms.GetSigHashAlgorithm Method (String, String, Boolean)

Finds ID of message digest hash algorithm used to make signature (legacy version)


public static int GetSigHashAlgorithm(
	string inputFile,
	string certFile,
	bool inputIsBase64
Public Shared Function GetSigHashAlgorithm ( _
	inputFile As String, _
	certFile As String, _
	inputIsBase64 As Boolean _
) As Integer


file containing CMS signed-data object
an (optional) X.509 certificate file to be used to identify the signer
[OBSOLETE: this parameter is ignored]

Return Value

0=SHA-1, 1=MD5, 2=MD2, 3=SHA256, 4=SHA-384, 5=SHA-512, 6=SHA-224; or a negative error code

[Contents] [Index]

[HOME]   [NEXT: Cms.MakeDetachedSig Method (String, String, String, String, Cms.Options)...]

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