SmartCardCryptoProvider::generateKey()

Generate a cryptographic key on the card.

Synopsis:

#include <smartcard_spi/SmartCardCryptoProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCryptoProvider::generateKey(const sc_crypto_system_t *cryptoSystem, sc_key_store_data_t *keyStoreData)

Since:

BlackBerry 10.3.1

Arguments:

cryptoSystem

The cryptographic system instance specifying key parameters. Must not be NULL.

keyStoreData

The instance of the key store data that identifies the key on the card. On input, if an existing key store data element is provided, the existing key referenced by this instance is replaced with a newly generated key. If a newly created (empty) key store data instance is provided, a new key is generated. On output, this parameter indicates the instance of the key store data that identifies the newly generated key. Must not be NULL.

Library:

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

Description:

Returns:

If the method succeeds, SC_SCARD_S_SUCCESS is returned. If the method fails, an error code is returned.

Last modified: 2014-09-30



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

comments powered by Disqus