diff options
author | tb <> | 2024-10-15 06:27:43 +0000 |
---|---|---|
committer | tb <> | 2024-10-15 06:27:43 +0000 |
commit | decfdffe8d7f4c92b4301e837c00315ac18011de (patch) | |
tree | a2645d67acbe0623e9e5c5c40b908c48032e168e /src/lib/libcrypto/ec/ec_lib.c | |
parent | 0cf982921c23ef66fd2a4a2a3a37bf97cc01ac00 (diff) | |
download | openbsd-decfdffe8d7f4c92b4301e837c00315ac18011de.tar.gz openbsd-decfdffe8d7f4c92b4301e837c00315ac18011de.tar.bz2 openbsd-decfdffe8d7f4c92b4301e837c00315ac18011de.zip |
Provide EC_GROUP_get0_cofactor() for internal use
While this is public API in OpenSSL, there are no plans to expose it.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 85567a76c1..4b7eb6016c 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_lib.c,v 1.67 2024/04/23 10:52:08 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.68 2024/10/15 06:27:43 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -393,6 +393,12 @@ EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx) | |||
393 | } | 393 | } |
394 | LCRYPTO_ALIAS(EC_GROUP_get_cofactor); | 394 | LCRYPTO_ALIAS(EC_GROUP_get_cofactor); |
395 | 395 | ||
396 | const BIGNUM * | ||
397 | EC_GROUP_get0_cofactor(const EC_GROUP *group) | ||
398 | { | ||
399 | return &group->cofactor; | ||
400 | } | ||
401 | |||
396 | void | 402 | void |
397 | EC_GROUP_set_curve_name(EC_GROUP *group, int nid) | 403 | EC_GROUP_set_curve_name(EC_GROUP *group, int nid) |
398 | { | 404 | { |