diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ecdh/ech_lib.c | 11 | ||||
| -rw-r--r-- | src/lib/libcrypto/ecdh/ech_local.h | 10 |
2 files changed, 10 insertions, 11 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 | ||
diff --git a/src/lib/libcrypto/ecdh/ech_local.h b/src/lib/libcrypto/ecdh/ech_local.h index fefa817b1c..44aa2cf250 100644 --- a/src/lib/libcrypto/ecdh/ech_local.h +++ b/src/lib/libcrypto/ecdh/ech_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ech_local.h,v 1.4 2023/06/25 18:45:56 tb Exp $ */ | 1 | /* $OpenBSD: ech_local.h,v 1.5 2023/06/25 19:14:14 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -60,14 +60,6 @@ | |||
| 60 | 60 | ||
| 61 | __BEGIN_HIDDEN_DECLS | 61 | __BEGIN_HIDDEN_DECLS |
| 62 | 62 | ||
| 63 | struct ecdh_method { | ||
| 64 | const char *name; | ||
| 65 | int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, | ||
| 66 | void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); | ||
| 67 | int flags; | ||
| 68 | char *app_data; | ||
| 69 | }; | ||
| 70 | |||
| 71 | /* | 63 | /* |
| 72 | * ECDH Key Derivation Function as defined in ANSI X9.63. | 64 | * ECDH Key Derivation Function as defined in ANSI X9.63. |
| 73 | */ | 65 | */ |
