Sig.SignDigest Method
Compute a signature value over a message digest value.
Syntax
[C#]
public static string SignDigest(
byte[] digest,
string privateKeyFile,
string password,
SigAlgorithm sigAlg,
Sig.SigOptions sigOpts = Sig.SigOptions.Default,
Sig.Encoding sigEncoding = Sig.Encoding.Default
)
[VB]
Public Shared Function SignDigest (
digest As Byte(),
privateKeyFile As String,
password As String,
sigAlg As SigAlgorithm,
Optional sigOpts As Sig.SigOptions = Sig.SigOptions.Default,
Optional sigEncoding As Sig.Encoding = Sig.Encoding.Default
) As String
Parameters
- digest Byte
- digest value in a byte array
- privateKeyFile String
- Name of private key file
(or a string containing the key in PEM format, or an internal private key)
- password String
- Password for the private key, if encrypted
- sigAlg SigAlgorithm
- Signature algorithm to be used
- sigOpts Sig.SigOptions (Optional)
- (optional) Options for ECDSA and RSA-PSS signatures
- sigEncoding Sig.Encoding (Optional)
- Optional encodings for output [default=base64]
Return Value
The encoded signature, or an empty string on error
See Also
VB6/C equivalent: SIG_SignData
[Contents] [Index]