Functions | |
DLLEXPORT int | tqsl_beginSigning (tQSL_Cert cert, char *password, int(*pwcb)(char *pwbuf, int pwsize, void *userdata), void *user) |
DLLEXPORT int | tqsl_checkSigningStatus (tQSL_Cert cert) |
DLLEXPORT int | tqsl_getMaxSignatureSize (tQSL_Cert cert, int *sigsize) |
DLLEXPORT int | tqsl_signDataBlock (tQSL_Cert cert, const unsigned char *data, int datalen, unsigned char *sig, int *siglen) |
DLLEXPORT int | tqsl_verifyDataBlock (tQSL_Cert cert, const unsigned char *data, int datalen, unsigned char *sig, int siglen) |
DLLEXPORT int | tqsl_signQSORecord (tQSL_Cert cert, tQSL_Location loc, TQSL_QSO_RECORD *rec, unsigned char *sig, int *siglen) |
DLLEXPORT int | tqsl_endSigning (tQSL_Cert cert) |
|
Initialize the tQSL_Cert object for use in signing. This produces an unencrypted copy of the private key in memory.
if
|
|
Test whether the tQSL_Cert object is initialized for signing. Returns 0 if initialized. Sets tQSL_Error to TQSL_SIGNINIT_ERROR if not. |
|
Terminate signing operations for this tQSL_Cert object. This zero-fills the unencrypted private key in memory. |
|
Get the maximum size of a signature block that will be produced when the tQSL_Cert is used to sign data. (Note that the size of the signature block is unaffected by the size of the data block being signed.) |
|
Sign a data block. tqsl_beginSigning() must have been called for the tQSL_Cert object before calling this function. |
|
Sign a single QSO record tqsl_beginSigning() must have been called for the tQSL_Cert object before calling this function.
|
|
Verify a signed data block. tqsl_beginSigning() need not have been called. |