| Updated: October 28, 2024 | 
Load a public key from memory
#include <qcrypto/qcrypto_keys.h>
int qcrypto_pubkey_from_mem(qcrypto_ctx_t *ctx,
                            qcrypto_key_t **key,
                            const uint8_t *kbuf,
                            size_t ksize,
                            qcrypto_key_format_t fmt)
This function loads a public key from the specified memory buffer.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.