diff options
author | 2017-01-21 10:38:29 +0000 | |
---|---|---|
committer | 2017-01-21 10:38:29 +0000 | |
commit | 44adc1eac90b19e731ed767b8523ee067b63713a (patch) | |
tree | ad2d2fed1b8bb12b462bdabe3acea9519d5fff18 /lib/libcrypto/dsa/dsa_gen.c | |
parent | Having a 'case 256:' in a switch (<uchar>) {} is bad on principle (diff) | |
download | wireguard-openbsd-44adc1eac90b19e731ed767b8523ee067b63713a.tar.xz wireguard-openbsd-44adc1eac90b19e731ed767b8523ee067b63713a.zip |
Split out BN_div and BN_mod into ct and nonct versions for Internal use.
ok jsing@
Diffstat (limited to 'lib/libcrypto/dsa/dsa_gen.c')
-rw-r--r-- | lib/libcrypto/dsa/dsa_gen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/dsa/dsa_gen.c b/lib/libcrypto/dsa/dsa_gen.c index d627e5ae9ca..b6bbb8ab08f 100644 --- a/lib/libcrypto/dsa/dsa_gen.c +++ b/lib/libcrypto/dsa/dsa_gen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_gen.c,v 1.23 2017/01/21 09:38:59 beck Exp $ */ +/* $OpenBSD: dsa_gen.c,v 1.24 2017/01/21 10:38:29 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -271,7 +271,7 @@ dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits, const EVP_MD *evpmd, /* step 9 */ if (!BN_lshift1(r0, q)) goto err; - if (!BN_mod(c, X, r0, ctx)) + if (!BN_mod_ct(c, X, r0, ctx)) goto err; if (!BN_sub(r0, c, BN_value_one())) goto err; @@ -306,7 +306,7 @@ end: /* Set r0=(p-1)/q */ if (!BN_sub(test, p, BN_value_one())) goto err; - if (!BN_div(r0, NULL, test, q, ctx)) + if (!BN_div_ct(r0, NULL, test, q, ctx)) goto err; if (!BN_set_word(test, h)) |