summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-01-23 20:33:28 +1000
committerShane Lontis <shane.lontis@oracle.com>2020-01-23 20:33:28 +1000
commit62f49b90d7e88d3c36fc1f5e4d677997aeb97b0a (patch)
treefbe5f7df9b658d87f2975923703942033ff020d2 /include
parentf10048301390283523d3d1623880be7518cf46ac (diff)
Add DH key exchange to fips provider
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10826)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/dh.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/crypto/dh.h b/include/crypto/dh.h
new file mode 100644
index 0000000000..4032bdc10e
--- /dev/null
+++ b/include/crypto/dh.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+#include <openssl/dh.h>
+
+int dh_compute_key(OPENSSL_CTX *ctx, unsigned char *key, const BIGNUM *pub_key,
+ DH *dh);
+int dh_compute_key_padded(OPENSSL_CTX *ctx, unsigned char *key,
+ const BIGNUM *pub_key, DH *dh);