Commit cf633fa0 authored by Emilia Kasper's avatar Emilia Kasper
Browse files

BN_mod_exp_mont_consttime: check for zero modulus.

Don't dereference |d| when |top| is zero. Also test that various BIGNUM methods behave correctly on zero/even inputs.

Follow-up to b11980d7



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 732a6b55
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment