CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2025/01/21 08:44:22

Modified files:
        lib/libcrypto/bn: bn_exp.c bn_local.h bn_recp.c 

Log message:
Move BN_RECP_CTX to the heap

This introduces a BN_RECP_CTX_create() function that allocates and
populates the BN_RECP_CTX in a single call, without taking an unused
BN_CTX argument.

At the same time, make the N and Nr members BIGNUMs on the heap which
are allocated by BN_RECP_CTX_create() and freed by BN_RECP_CTX_free()
and remove the unnecessary flags argument.

Garbage collect the now unused BN_RECP_CTX_{new,init,set}().

ok jsing

Reply via email to