summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdh/ech_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_lib.c')
-rw-r--r--src/lib/libcrypto/ecdh/ech_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_lib.c b/src/lib/libcrypto/ecdh/ech_lib.c
index 579dfc4b4f..bb70d2d95f 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.10 2015/09/13 10:46:20 jsing Exp $ */ 1/* $OpenBSD: ech_lib.c,v 1.11 2015/09/13 12:03:07 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -239,3 +239,9 @@ ECDH_get_ex_data(EC_KEY *d, int idx)
239 return NULL; 239 return NULL;
240 return (CRYPTO_get_ex_data(&ecdh->ex_data, idx)); 240 return (CRYPTO_get_ex_data(&ecdh->ex_data, idx));
241} 241}
242
243int
244ECDH_size(const EC_KEY *d)
245{
246 return ((EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8);
247}