diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-06-25 19:17:44 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-06-25 19:17:44 +0000 |
commit | 3a2a2ca866693b861fa3a4618822fd25e0a66699 (patch) | |
tree | 12bb29d297fa6dbee24e0139ec02b8793531504f | |
parent | 1ef0e6a8f923ea71210a6d35e4f673ce93f48d08 (diff) |
Move ECDH_size() to ech_key.c
This way the public ECDH API that will remain in libcrypto is in one file
and the public ECDH API that will go is in the other one.
-rw-r--r-- | lib/libcrypto/ecdh/ech_key.c | 8 | ||||
-rw-r--r-- | lib/libcrypto/ecdh/ech_lib.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/libcrypto/ecdh/ech_key.c b/lib/libcrypto/ecdh/ech_key.c index 5f68b018603..208a4b328e0 100644 --- a/lib/libcrypto/ecdh/ech_key.c +++ b/lib/libcrypto/ecdh/ech_key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ech_key.c,v 1.16 2023/06/25 19:04:35 tb Exp $ */ +/* $OpenBSD: ech_key.c,v 1.17 2023/06/25 19:17:43 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -199,3 +199,9 @@ ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, ECerror(EC_R_NOT_IMPLEMENTED); return 0; } + +int +ECDH_size(const EC_KEY *d) +{ + return ((EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8); +} diff --git a/lib/libcrypto/ecdh/ech_lib.c b/lib/libcrypto/ecdh/ech_lib.c index c537ba00bf8..eb1b6bfebcb 100644 --- a/lib/libcrypto/ecdh/ech_lib.c +++ b/lib/libcrypto/ecdh/ech_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ech_lib.c,v 1.21 2023/06/25 19:14:14 tb Exp $ */ +/* $OpenBSD: ech_lib.c,v 1.22 2023/06/25 19:17:43 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -138,9 +138,3 @@ ECDH_get_ex_data(EC_KEY *d, int idx) { return NULL; } - -int -ECDH_size(const EC_KEY *d) -{ - return ((EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8); -} |