CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2023/08/08 07:59:04

Modified files:
        lib/libcrypto/bn: bn_blind.c 

Log message:
Make BN_BLINDING respect some invariants

Pass e and mod into BN_BLINDING_new() for now and unconditionally allocate
A and Ai. This way non-NULL blindings always have these four members set.
This allows removing several unnecessary checks in the update, convert and
parameter creation code paths.

Fix exit BN_BLINDING_create_param() so as to signal errors to the caller
if a non-NULL blinding was passed. This fixes a long standing bug.

ok jsing

Reply via email to