diff options
author | tb <> | 2019-01-19 01:12:48 +0000 |
---|---|---|
committer | tb <> | 2019-01-19 01:12:48 +0000 |
commit | dad3267aefbeab3a8910c1c59b2e5f7e9c12b048 (patch) | |
tree | 5ac3e1c2617f2fd9b71523bfd1836f187ba33661 /src/lib/libcrypto/ec/ec.h | |
parent | dc38b357c3a6e0db4a7172af29148961b86b0724 (diff) | |
download | openbsd-dad3267aefbeab3a8910c1c59b2e5f7e9c12b048.tar.gz openbsd-dad3267aefbeab3a8910c1c59b2e5f7e9c12b048.tar.bz2 openbsd-dad3267aefbeab3a8910c1c59b2e5f7e9c12b048.zip |
Partial port of EC_KEY_METHOD from OpenSSL 1.1.
This commit adds missing API for ECDH/ECDSA_verify.
from markus
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 1173459dae..0b8d2cb355 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.14 2019/01/19 01:07:00 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.15 2019/01/19 01:12:48 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 | */ |
@@ -966,6 +966,11 @@ void EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth, | |||
966 | int (*set_group)(EC_KEY *key, const EC_GROUP *grp), | 966 | int (*set_group)(EC_KEY *key, const EC_GROUP *grp), |
967 | int (*set_private)(EC_KEY *key, const BIGNUM *priv_key), | 967 | int (*set_private)(EC_KEY *key, const BIGNUM *priv_key), |
968 | int (*set_public)(EC_KEY *key, const EC_POINT *pub_key)); | 968 | int (*set_public)(EC_KEY *key, const EC_POINT *pub_key)); |
969 | void EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth, | ||
970 | int (*keygen)(EC_KEY *key)); | ||
971 | void 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, | ||
973 | void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen))); | ||
969 | void EC_KEY_METHOD_get_init(EC_KEY_METHOD *meth, | 974 | void EC_KEY_METHOD_get_init(EC_KEY_METHOD *meth, |
970 | int (**pinit)(EC_KEY *key), | 975 | int (**pinit)(EC_KEY *key), |
971 | void (**pfinish)(EC_KEY *key), | 976 | void (**pfinish)(EC_KEY *key), |
@@ -973,6 +978,11 @@ void EC_KEY_METHOD_get_init(EC_KEY_METHOD *meth, | |||
973 | int (**pset_group)(EC_KEY *key, const EC_GROUP *grp), | 978 | int (**pset_group)(EC_KEY *key, const EC_GROUP *grp), |
974 | int (**pset_private)(EC_KEY *key, const BIGNUM *priv_key), | 979 | int (**pset_private)(EC_KEY *key, const BIGNUM *priv_key), |
975 | int (**pset_public)(EC_KEY *key, const EC_POINT *pub_key)); | 980 | int (**pset_public)(EC_KEY *key, const EC_POINT *pub_key)); |
981 | void EC_KEY_METHOD_get_keygen(EC_KEY_METHOD *meth, | ||
982 | int (**pkeygen)(EC_KEY *key)); | ||
983 | void EC_KEY_METHOD_get_compute_key(EC_KEY_METHOD *meth, | ||
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))); | ||
976 | 986 | ||
977 | EC_KEY *ECParameters_dup(EC_KEY *key); | 987 | EC_KEY *ECParameters_dup(EC_KEY *key); |
978 | 988 | ||