summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec.h
diff options
context:
space:
mode:
authortb <>2019-01-19 01:17:41 +0000
committertb <>2019-01-19 01:17:41 +0000
commita741d73f3a638cbcc4176f99548e19619d509a37 (patch)
treef4d003b026103565ddcb241cb607895484d8176f /src/lib/libcrypto/ec/ec.h
parentdad3267aefbeab3a8910c1c59b2e5f7e9c12b048 (diff)
downloadopenbsd-a741d73f3a638cbcc4176f99548e19619d509a37.tar.gz
openbsd-a741d73f3a638cbcc4176f99548e19619d509a37.tar.bz2
openbsd-a741d73f3a638cbcc4176f99548e19619d509a37.zip
Partial port of EC_KEY_METHOD from OpenSSL 1.1.
Pass const method to EC_KEY_METHOD_get_*() to get rid of an XXX. from markus
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r--src/lib/libcrypto/ec/ec.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h
index 0b8d2cb355..1c5641eca0 100644
--- a/src/lib/libcrypto/ec/ec.h
+++ b/src/lib/libcrypto/ec/ec.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec.h,v 1.15 2019/01/19 01:12:48 tb Exp $ */ 1/* $OpenBSD: ec.h,v 1.16 2019/01/19 01:17:41 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 */
@@ -971,16 +971,16 @@ void EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth,
971void EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth, 971void EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,
972 int (*ckey)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, 972 int (*ckey)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
973 void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen))); 973 void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)));
974void EC_KEY_METHOD_get_init(EC_KEY_METHOD *meth, 974void EC_KEY_METHOD_get_init(const EC_KEY_METHOD *meth,
975 int (**pinit)(EC_KEY *key), 975 int (**pinit)(EC_KEY *key),
976 void (**pfinish)(EC_KEY *key), 976 void (**pfinish)(EC_KEY *key),
977 int (**pcopy)(EC_KEY *dest, const EC_KEY *src), 977 int (**pcopy)(EC_KEY *dest, const EC_KEY *src),
978 int (**pset_group)(EC_KEY *key, const EC_GROUP *grp), 978 int (**pset_group)(EC_KEY *key, const EC_GROUP *grp),
979 int (**pset_private)(EC_KEY *key, const BIGNUM *priv_key), 979 int (**pset_private)(EC_KEY *key, const BIGNUM *priv_key),
980 int (**pset_public)(EC_KEY *key, const EC_POINT *pub_key)); 980 int (**pset_public)(EC_KEY *key, const EC_POINT *pub_key));
981void EC_KEY_METHOD_get_keygen(EC_KEY_METHOD *meth, 981void EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,
982 int (**pkeygen)(EC_KEY *key)); 982 int (**pkeygen)(EC_KEY *key));
983void EC_KEY_METHOD_get_compute_key(EC_KEY_METHOD *meth, 983void EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth,
984 int (**pck)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, 984 int (**pck)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
985 void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen))); 985 void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)));
986 986