Perform a signing operation.
#include <smartcard_spi/SmartCardCryptoProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCryptoProvider::sign(const unsigned char *data, unsigned int dataLength, unsigned char *signature, unsigned int &signatureLength)
BlackBerry 10.3.0
The input buffer containing the data to be signed; must not be NULL.
The data buffer length.
The output buffer where the signature data will be written. If NULL, only the signature length will be returned.
On input, this parameter specifies the signature buffer length. On output, this parameter specifies the signature length.
This function performs a signing operation.
Algorithm specific notes:
Depending on card driver implementation, this function may or may not be called multiple times without re-initializing.
If the function succeeds, SC_SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.