SignDoc SDK (.NET with exceptions)  5.0.0
SignECDSA Interface Reference

Interface for creating an ECDSA signature. More...

Public Member Functions

byte[] sign (Source aSource, string aHashAlgorithm)
 Compute an ECDSA signature. More...
 
int getSignatureSize ()
 Get the size of the signature that will be computed by sign(). More...
 
byte[] getSigningCertificate ()
 Get the signing certificate. More...
 
int getCertificateCount ()
 Get the number of available intermediate certificates. More...
 
byte[] getCertificate (int aIndex)
 Get an intermediate certificate. More...
 
string getErrorMessage ()
 Get an error message for the last operation. More...
 

Detailed Description

Interface for creating an ECDSA signature.

Selection of the certificate is up to the implementation.

Member Function Documentation

byte [] getCertificate ( int  aIndex)

Get an intermediate certificate.

Parameters
[in]aIndexThe zero-based index of the intermediate certificate, see getCertificateCount().
Returns
The requested intermediate certificate (DER-encoded X.509) or null on error.
Note
The WinRT component returns null instead of an empty blob.
int getCertificateCount ( )

Get the number of available intermediate certificates.

Returns
The number of available intermediate certificates.
string getErrorMessage ( )

Get an error message for the last operation.

After any method of this object has been called, this function shall return an error message (possibly empty if the most recently called method didn't fail).

Returns
An error message (possibly empty if the last operation succeeded).
int getSignatureSize ( )

Get the size of the signature that will be computed by sign().

Returns
The size in octets of the signature that will be computed by sign() or a negative value on error.
byte [] getSigningCertificate ( )

Get the signing certificate.

Returns
The signing certificate (DER-encoded X.509) or null on error.
Note
The WinRT component returns null instead of an empty blob.
byte [] sign ( Source  aSource,
string  aHashAlgorithm 
)

Compute an ECDSA signature.

Parameters
[in]aSourceAn object providing data to be hashed and signed.
[in]aHashAlgorithmThe hash algorithm to be used for the signature:
  • "SHA-1"
  • "SHA-224"
  • "SHA-256"
  • "SHA-384"
  • "SHA-512"
Returns
The ECDSA signature (a DER-encoded SEQUENCE). It shall not be wrapped in an OCTET STRING.

The documentation for this interface was generated from the following file: