qcrypto_key_to_file()

Updated: April 19, 2023

Save a symmetric key to a file

Synopsis:

#include <qcrypto/qcrypto_keys.h>
int qcrypto_key_to_file(qcrypto_ctx_t *ctx,
                        qcrypto_key_t *key,
                        const char *filename)

Arguments:

ctx
The algorithm context object.
key
The symmetric key handle.
filename
The key filename.

Library:

libqcrypto

Description:

This function saves a symmetric key to the specified filename.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.