Return a buffer with random bytes.
#include <smartcard_spi/SmartCardCryptoProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCryptoProvider::generateRandomData(unsigned char *randomData, unsigned int &randomDataLength)
BlackBerry 10.3.0
A buffer for storing generated random data. If NULL is specified, the randomDataLength parameter may return the maximum number of bytes it can generate. If this feature is not supported, the function will return an error.
On input, this parameter specifies the requested number of random bytes to generate. On output, this parameter returns the actual number of random bytes generated.
This function returns a buffer with random bytes generated by the card. The data produced by this function shall be cryptographically random.
If the function succeeds, SC_SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.