SmartCardCryptoProvider::getPublicKey()

Retrieve the public key associated with the specified key store data.

Synopsis:

#include <smartcard_spi/SmartCardCryptoProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCryptoProvider::getPublicKey(const sc_key_store_data_t *keyStoreData, unsigned char *publicKey, unsigned int &publicKeyLength)

Since:

BlackBerry 10.3.1

Arguments:

keyStoreData

The instance of the key store data that identifies the key on the card. Must not be NULL.

publicKey

The output buffer where the public key data is written. The DER-encoded public key is returned in X.509 format. If NULL, only the public key length is returned.

publicKeyLength

On input, the length of the public key buffer. On output, the length of the public 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