SignDoc SDK (.NET with exceptions)
5.0.0
|
Interface for creating an RSA signature. More...
Public Member Functions | |
byte[] | sign (Source aSource, string aSignatureScheme, string aHashAlgorithm, int aSaltLength) |
Compute an RSA 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... | |
Interface for creating an RSA signature.
Selection of the certificate is up to the implementation.
byte [] getCertificate | ( | int | aIndex | ) |
Get an intermediate certificate.
[in] | aIndex | The zero-based index of the intermediate certificate, see getCertificateCount(). |
int getCertificateCount | ( | ) |
Get 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).
int getSignatureSize | ( | ) |
byte [] getSigningCertificate | ( | ) |
Get the signing certificate.
byte [] sign | ( | Source | aSource, |
string | aSignatureScheme, | ||
string | aHashAlgorithm, | ||
int | aSaltLength | ||
) |
Compute an RSA signature.
[in] | aSource | An object providing data to be hashed and signed. |
[in] | aSignatureScheme | The RSA signature scheme:
|
[in] | aHashAlgorithm | The Hash algorithm to be used for the signature and (for RSASSA-PSS) for mask generation:
|
[in] | aSaltLength | The salt length (in octets) for RSASSA-PSS, to be ignored for the PKCS #1 signature scheme. |