sc_crypto_token_get_property_byte_array()

Retrieve binary data from the crypto token instance.

Synopsis:

#include <smartcard/sc_crypto_token.h>
 
sc_response_code_t sc_crypto_token_get_property_byte_array(const sc_crypto_token_t *crypto_token,                 
                                                           const char *key,                 
                                                           unsigned char *value,                 
                                                           size_t *value_length)

Since:

BlackBerry 10.2.0

Arguments:

crypto_token

The crypto token instance. This value cannot be NULL.

key

The attribute key in a NULL-terminated string. This value cannot be NULL.

value

The buffer used to store the requested binary data. If NULL, then the length of the requested value is written to value_length.

value_length

If value is NULL, then this parameter is used to store the length of the binary data that is currently mapped to the specified key when the function returns. If value is not NULL, then this parameter indicates the length of value on input. This value cannot be NULL.

Library:

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

Description:

Returns:

SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.