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.
-/* $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.
*
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);
+}
-/* $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.
*
{
return NULL;
}
-
-int
-ECDH_size(const EC_KEY *d)
-{
- return ((EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8);
-}