SmartCardCryptoProvider::encryptInit()

Initialize the smart card in preparation for encryption operations.

Synopsis:

#include <smartcard_spi/SmartCardCryptoProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCryptoProvider::encryptInit(const sc_crypto_system_t *cryptoSystem, const sc_crypto_token_t *key)

Since:

BlackBerry 10.3.0

Arguments:

cryptoSystem

The Cryptographic system to use for the encryption operation. NULL may be allowed, for example, if the driver only supports one cryptographic system.

key

A cryptographic token describing the key to use for encryption operation. NULL may be allowed, for example, if the driver only supports one cryptographic key.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

This function initializes the smart card in preparation to perform encryption operations with the specified cryptographic system and key.

Returns:

If successful, SC_SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus