Serialize key store data instance.
#include <smartcard/sc_key_store_data.h>
sc_response_code_t sc_key_store_data_serialize(const sc_key_store_data_t *key_store_data,
unsigned char *buffer,
size_t *buffer_length)
BlackBerry 10.2.0
The key store data instance to serialize. This value cannot be NULL.
The buffer where the serialized form of the instance is written. If this parameter is NULL, then this function computes only the size of the buffer that is required to hold the serialized form of the instance.
If buffer is not NULL, then this parameter indicates the length of buffer. Otherwise, the size of the buffer that is required to hold the serialized data is written to this parameter when the function returns. This value cannot be NULL.
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.