aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-07-04 05:19:26 +0000
committerNIIBE Yutaka <[email protected]>2025-07-04 05:19:26 +0000
commit5ab9d59ee19ec1a50976d98344d331015180f7c9 (patch)
tree0371eb06981ecf2bd2b7cd8fc77873c14c85c4c7 /common/util.h
parentcommon:kem: Factor out a function to retrieve ECC parameters. (diff)
downloadgnupg-5ab9d59ee19ec1a50976d98344d331015180f7c9.tar.gz
gnupg-5ab9d59ee19ec1a50976d98344d331015180f7c9.zip
common:ecc: Have a field if the curve of ECC is Weierstrass.
* common/util.h (struct gnupg_ecc_params): Add is_weierstrauss. * common/kem.c (ecc_table): Update. Also add secp256k1. -- GnuPG-bug-id: 7698 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index b13f4300d..e8e6ed409 100644
--- a/common/util.h
+++ b/common/util.h
@@ -335,6 +335,7 @@ struct gnupg_ecc_params
int kem_algo;
int scalar_reverse; /* Byte-oder is reverse. */
int may_have_prefix; /* Point representation may have prefix. */
+ int is_weierstrauss; /* True if it is Weierstrass curve. */
};
const struct gnupg_ecc_params *gnupg_get_ecc_params (const char *curve);