diff options
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_ossl.c')
| -rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_ossl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c index 25bcb06e88..e6d6b0cd71 100644 --- a/src/lib/libcrypto/ecdsa/ecs_ossl.c +++ b/src/lib/libcrypto/ecdsa/ecs_ossl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecs_ossl.c,v 1.30 2023/03/27 10:21:23 tb Exp $ */ | 1 | /* $OpenBSD: ecs_ossl.c,v 1.31 2023/03/27 10:25:02 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
| 4 | */ | 4 | */ |
| @@ -200,12 +200,12 @@ ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) | |||
| 200 | * code path used in the constant time implementations | 200 | * code path used in the constant time implementations |
| 201 | * elsewhere. | 201 | * elsewhere. |
| 202 | * | 202 | * |
| 203 | * TODO: revisit the BN_copy aiming for a memory access agnostic | 203 | * TODO: revisit the bn_copy aiming for a memory access agnostic |
| 204 | * conditional copy. | 204 | * conditional copy. |
| 205 | */ | 205 | */ |
| 206 | if (!BN_add(r, k, order) || | 206 | if (!BN_add(r, k, order) || |
| 207 | !BN_add(X, r, order) || | 207 | !BN_add(X, r, order) || |
| 208 | !BN_copy(k, BN_num_bits(r) > order_bits ? r : X)) | 208 | !bn_copy(k, BN_num_bits(r) > order_bits ? r : X)) |
| 209 | goto err; | 209 | goto err; |
| 210 | 210 | ||
| 211 | BN_set_flags(k, BN_FLG_CONSTTIME); | 211 | BN_set_flags(k, BN_FLG_CONSTTIME); |
