diff options
author | tb <> | 2022-11-19 07:29:29 +0000 |
---|---|---|
committer | tb <> | 2022-11-19 07:29:29 +0000 |
commit | 97ff0b8011f923270c9adb50e24c2b4c4a533238 (patch) | |
tree | 744c8fadca050ecfeaa626562148788777b42d2f /src/lib/libcrypto/ec/ec2_mult.c | |
parent | b197546e7fd8128aedea248a6196a0d25734b937 (diff) | |
download | openbsd-97ff0b8011f923270c9adb50e24c2b4c4a533238.tar.gz openbsd-97ff0b8011f923270c9adb50e24c2b4c4a533238.tar.bz2 openbsd-97ff0b8011f923270c9adb50e24c2b4c4a533238.zip |
Fix an annoying quirk in the EC code
Dealing with elliptic curves makes some people think that it would be kind
of neat to multiply types with variable names. Sometimes. Only in function
definitions.
Diffstat (limited to 'src/lib/libcrypto/ec/ec2_mult.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec2_mult.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec2_mult.c b/src/lib/libcrypto/ec/ec2_mult.c index 3e5d1dca85..c44ac5c3db 100644 --- a/src/lib/libcrypto/ec/ec2_mult.c +++ b/src/lib/libcrypto/ec/ec2_mult.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec2_mult.c,v 1.13 2018/07/23 18:24:22 tb Exp $ */ | 1 | /* $OpenBSD: ec2_mult.c,v 1.14 2022/11/19 07:29:29 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -441,13 +441,13 @@ ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | |||
441 | * because ec_GF2m_simple_mul() uses ec_wNAF_mul() if appropriate */ | 441 | * because ec_GF2m_simple_mul() uses ec_wNAF_mul() if appropriate */ |
442 | 442 | ||
443 | int | 443 | int |
444 | ec_GF2m_precompute_mult(EC_GROUP * group, BN_CTX * ctx) | 444 | ec_GF2m_precompute_mult(EC_GROUP *group, BN_CTX *ctx) |
445 | { | 445 | { |
446 | return ec_wNAF_precompute_mult(group, ctx); | 446 | return ec_wNAF_precompute_mult(group, ctx); |
447 | } | 447 | } |
448 | 448 | ||
449 | int | 449 | int |
450 | ec_GF2m_have_precompute_mult(const EC_GROUP * group) | 450 | ec_GF2m_have_precompute_mult(const EC_GROUP *group) |
451 | { | 451 | { |
452 | return ec_wNAF_have_precompute_mult(group); | 452 | return ec_wNAF_have_precompute_mult(group); |
453 | } | 453 | } |