qcrypto_key_to_mem()
QNX SDP8.0QNX OS System Security GuideAPIConfiguration
Save a symmetric key to memory
Synopsis:
#include <qcrypto/qcrypto_keys.h>
int qcrypto_key_to_mem(qcrypto_ctx_t *ctx,
qcrypto_key_t *key,
uint8_t *kbuf,
size_t *ksize)
Arguments:
- ctx
- The algorithm context object.
- key
- The symmetric key handle.
- kbuf
- The key buffer. To return the actual key size in ksize, specify NULL.
- ksize
- The size of the provided key buffer. Must be at least as large as the key. The actual key size is returned in ksize if the call is successful.
Library:
libqcryptoDescription:
This function saves a symmetric key to the specified memory buffer.
Returns:
QCRYPTO_R_EOK if successful or qcrypto_errno
if an error occurred.
Page updated: