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