summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-09-05 16:12:36 +0000
committerjsing <jsing@openbsd.org>2019-09-05 16:12:36 +0000
commitbbc1055efd41a76b92fa22f720c17db5dca787b6 (patch)
treee4785eea7de65896d1e2ec4077e5a49e2e1c1527
parentInclude correct header. (diff)
downloadwireguard-openbsd-bbc1055efd41a76b92fa22f720c17db5dca787b6.tar.xz
wireguard-openbsd-bbc1055efd41a76b92fa22f720c17db5dca787b6.zip
Provide prototype for ecdh_KDF_X9_63()
-rw-r--r--lib/libcrypto/ecdh/ech_locl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libcrypto/ecdh/ech_locl.h b/lib/libcrypto/ecdh/ech_locl.h
index b5777df4230..b04d325ed14 100644
--- a/lib/libcrypto/ecdh/ech_locl.h
+++ b/lib/libcrypto/ecdh/ech_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ech_locl.h,v 1.5 2016/12/21 15:49:29 jsing Exp $ */
+/* $OpenBSD: ech_locl.h,v 1.6 2019/09/05 16:12:36 jsing Exp $ */
/* ====================================================================
* Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved.
*
@@ -88,6 +88,12 @@ typedef struct ecdh_data_st {
ECDH_DATA *ecdh_check(EC_KEY *);
+/*
+ * ECDH Key Derivation Function as defined in ANSI X9.63.
+ */
+int ecdh_KDF_X9_63(unsigned char *out, size_t outlen, const unsigned char *Z,
+ size_t Zlen, const unsigned char *sinfo, size_t sinfolen, const EVP_MD *md);
+
__END_HIDDEN_DECLS
#endif /* HEADER_ECH_LOCL_H */