Encrypt data in a single part.
#include <smartcard_spi/SmartCardCryptoProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCryptoProvider::encrypt(const unsigned char *plaintext, unsigned int plaintextLength, unsigned char *ciphertext, unsigned int &ciphertextLength)
BlackBerry 10.3.0
The input buffer containing the plaintext to be encrypted. Must not be NULL.
The plaintext buffer length.
The output buffer where the ciphertext data will be written. If NULL, only the ciphertext length will be returned.
On input, this parameter specifies the ciphertext buffer length. On output, this parameter specifies the ciphertext length.
This function encrypts data in a single part.
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.