Retrieve the public key associated with the specified key store data.
#include <smartcard/sc_smart_card.h>
sc_response_code_t sc_get_public_key(sc_context_t *context,
const sc_key_store_data_t *key_store_data,
unsigned char *public_key,
size_t *public_key_length)
BlackBerry 10.3.1
The active smart card context. Must not be NULL.
The instance of the key store data that identifies the key on the card. Must not be NULL.
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.
On input, the length of the public key buffer. On output, the public key length. Must not be NULL.
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.