CryptoSys PKI Pro Manual

Sig.SignData Method

Compute a signature value over data in a byte array.

Syntax

[C#]
public static string SignData(
	byte[] data,
	string privateKeyFile,
	string password,
	SigAlgorithm sigAlg,
	Sig.SigOptions sigOpts,
	Sig.Encoding sigEncoding
)
[VB.NET]
Public Shared Function SignData ( _
	data As Byte(), _
	privateKeyFile As String, _
	password As String, _
	sigAlg As SigAlgorithm, _
	sigOpts As Sig.SigOptions, _
	sigEncoding As Sig.Encoding _
) As String

Parameters

data
input data to be signed
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
sigOpts
Type: Sig.SigOptions
(optional) Options for ECDSA and RSA-PSS signatures
sigEncoding
Type: Sig.Encoding
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]

[PREV: Sig.GetHashAlgFromSigAlg Method...]   [Contents]   [Index]   
   [NEXT: Sig.SignDigest Method...]

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