| Updated: October 28, 2024 |
Save a private key to a file
#include <qcrypto/qcrypto_keys.h>
int qcrypto_privkey_to_file(qcrypto_ctx_t *ctx,
qcrypto_key_t *key,
const char *filename,
qcrypto_key_format_t fmt)
This function saves a private key to the specified filename.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.