CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2023/04/11 12:58:20
Modified files: lib/libcrypto/ec: ec2_mult.c ec2_oct.c ec2_smpl.c ec_check.c ec_lib.c ec_mult.c ec_oct.c ecp_mont.c ecp_nist.c ecp_oct.c ecp_smpl.c Log message: Handle BN_CTX at the EC API boundary. The EC API allows callers to optionally pass in a BN_CTX, which means that any code needing a BN_CTX has to check if one was provided, allocate one if not, then free it again. Rather than doing this dance throughout the EC code, handle the BN_CTX existance at the EC API boundary. This means that lower level implementation code can simply assume that the BN_CTX is available. ok tb@