Allocate a BN_CTX whose temporary BIGNUMs use secure heap storage.

Synopsis

Declared in <openssl/bn.h>

BN_CTX*
BN_CTX_secure_new_ex(OSSL_LIB_CTX* ctx);

Return Value

New BN_CTX with BN_FLG_SECURE set, or NULL on failure; free with BN_CTX_free().

Parameters

Name

Description

ctx

Library context for allocation, or NULL for the default.

Created with MrDocs