summaryrefslogtreecommitdiff
path: root/src/gcrypt.h.in
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-01-18 18:28:13 +0100
committerWerner Koch <wk@gnupg.org>2021-01-18 18:28:13 +0100
commitca5a90bf70598247589078478d237287ca524453 (patch)
tree78b41038748cff3a4f502761f8c7268a338e9628 /src/gcrypt.h.in
parent04c50901a2f2016486f532891ee8c1961a465c04 (diff)
downloadlibgcrypt-ca5a90bf70598247589078478d237287ca524453.tar.gz
ecc: Change an error code of gcry_ecc_mul_point.
* cipher/ecc-ecdh.c (_gcry_ecc_mul_point): Return GPG_ERR_UNKNOWN_CURVE. -- Unknown_curve is more specific than unknown_algorithm. This patch also adds documentation and renames rthe parameter from 'algo' to 'curveid'. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r--src/gcrypt.h.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index 5668e625..e77b6e74 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -946,7 +946,7 @@ enum gcry_cipher_algos
GCRY_CIPHER_SALSA20R12 = 314,
GCRY_CIPHER_GOST28147 = 315,
GCRY_CIPHER_CHACHA20 = 316,
- GCRY_CIPHER_GOST28147_MESH = 317, /* GOST 28247 with optional CryptoPro keymeshing */
+ GCRY_CIPHER_GOST28147_MESH = 317, /* With CryptoPro key meshing. */
GCRY_CIPHER_SM4 = 318
};
@@ -1215,11 +1215,11 @@ enum gcry_ecc_curves
};
/* Get the length of point to prepare buffer for the result. */
-unsigned int gcry_ecc_get_algo_keylen (int algo);
+unsigned int gcry_ecc_get_algo_keylen (int curveid);
/* Convenience function to compute scalar multiplication of the
- Montgomery form of curve. */
-gpg_error_t gcry_ecc_mul_point (int algo, unsigned char *result,
+ * Montgomery form of curve. */
+gpg_error_t gcry_ecc_mul_point (int curveid, unsigned char *result,
const unsigned char *scalar,
const unsigned char *point);