SmartCardCryptoProvider::getKeyStoreData()

Retrieve key store data.

Synopsis:

#include <smartcard_spi/SmartCardCryptoProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCryptoProvider::getKeyStoreData(sc_key_store_data_t **keyStoreDataElements, unsigned int &numKeyStoreDataElements)

Since:

BlackBerry 10.3.0

Arguments:

keyStoreDataElements

The array of key store data pointers. The array should be allocated by the caller, and it will be populated by this function. The sc_key_store_data_t instances should be pre-allocated by the caller. If NULL, only the number of elements will be returned.

numKeyStoreDataElements

On input, specifies the length of keyStoreDataElements array allocated by the caller. The number of pre-allocated key store data elements should be no less than keyStoreDataElementsLength. On output, specifies the number of key store data elements available.

Library:

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

Description:

This function retrieves key store data associated with the keys stored on the card. The returned collection of key store data describes all private and symmetric keys stored on the card including any certificates associated with those keys.

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