• G
    bignum: fix boundary condition in montgomery logic · a5292618
    Geoff Thorpe 提交于
    It's not clear whether this inconsistency could lead to an actual
    computation error, but it involved a BIGNUM being passed around the
    montgomery logic in an inconsistent state. This was found using flags
    -DBN_DEBUG -DBN_DEBUG_RAND, and working backwards from this assertion
    in 'ectest';
    
    ectest: bn_mul.c:960: BN_mul: Assertion `(_bnum2->top == 0) ||
    (_bnum2->d[_bnum2->top - 1] != 0)' failed
    Signed-off-by: NGeoff Thorpe <geoff@openssl.org>
    a5292618
bn_exp.c 36.9 KB