diff options
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_lib.c')
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_lib.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_lib.c b/src/lib/libcrypto/ecdh/ech_lib.c index d968793208..c537ba00bf 100644 --- a/src/lib/libcrypto/ecdh/ech_lib.c +++ b/src/lib/libcrypto/ecdh/ech_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ech_lib.c,v 1.20 2023/06/25 19:04:35 tb Exp $ */ | 1 | /* $OpenBSD: ech_lib.c,v 1.21 2023/06/25 19:14:14 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -77,7 +77,14 @@ | |||
77 | #include <openssl/err.h> | 77 | #include <openssl/err.h> |
78 | 78 | ||
79 | #include "ec_local.h" | 79 | #include "ec_local.h" |
80 | #include "ech_local.h" | 80 | |
81 | struct ecdh_method { | ||
82 | const char *name; | ||
83 | int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, | ||
84 | void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); | ||
85 | int flags; | ||
86 | char *app_data; | ||
87 | }; | ||
81 | 88 | ||
82 | static const ECDH_METHOD *default_ECDH_method = NULL; | 89 | static const ECDH_METHOD *default_ECDH_method = NULL; |
83 | 90 | ||