CryptoSys PKI Pro Manual

Sig.SignDigest Method (Byte[], String, String, SigAlgorithm)

Compute a signature value over a message digest value.

Syntax

[C#]
public static string SignDigest(
	byte[] digest,
	string privateKeyFile,
	string password,
	SigAlgorithm sigAlg
)
[VB.NET]
Public Shared Function SignDigest ( _
	digest As Byte(), _
	privateKeyFile As String, _
	password As String, _
	sigAlg As SigAlgorithm _
) As String

Parameters

digest
digest value in a byte array
privateKeyFile
Name of private key file (or a string containing the key in PEM format, or an internal private key)
password
Password for the private key, if encrypted
sigAlg
Type: SigAlgorithm
Signature algorithm to be used

Return Value

The signature encoded in base64, or an empty string on error

Remarks

The output is a continuous string of base64 characters suitable for the <SignatureValue> of an XML-DSIG document.

See Also

VB6/C equivalent: SIG_SignData

[Contents] [Index]

[PREV: Sig.SignData Method (Byte, String, String, SigAlgorithm, Sig.SigOptions, Sig.Encoding)...]   [Contents]   [Index]   
   [NEXT: Sig.SignDigest Method (Byte, String, String, SigAlgorithm, Sig.SigOptions, Sig.Encoding)...]

Copyright © 2004-21 D.I. Management Services Pty Ltd. All rights reserved. Generated 2021-10-01T09:03:20Z.