qcrypto_key_from_mem()
QNX SDP8.0QNX OS System Security GuideAPIConfiguration
Load a symmetric key from memory
Synopsis:
#include <qcrypto/qcrypto_keys.h>
int qcrypto_key_from_mem(qcrypto_ctx_t *ctx,
qcrypto_key_t **key,
const uint8_t *kbuf,
size_t ksize)
Arguments:
- ctx
- The algorithm context object.
- key
- A pointer to a symmetric key handle.
- kbuf
- The key buffer.
- ksize
- The key buffer size.
Library:
libqcryptoDescription:
This function loads a symmetric key from the specified memory buffer.
Returns:
QCRYPTO_R_EOK if successful or qcrypto_errno
if an error occurred.
Page updated: