summaryrefslogtreecommitdiffstats
path: root/crypto/ecdh/ech_ossl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-03-09 23:44:06 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-03-09 23:44:06 +0000
commit8857b380e21b7140508cbcdd57abbcafdc658463 (patch)
tree2b9761dafa13021e1ef0af999be6ebed7b738b34 /crypto/ecdh/ech_ossl.c
parenta6de7133bb1671e2c5ff1116ec4d337d26a64952 (diff)
Add ECDH to validated module.
Diffstat (limited to 'crypto/ecdh/ech_ossl.c')
-rw-r--r--crypto/ecdh/ech_ossl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/ecdh/ech_ossl.c b/crypto/ecdh/ech_ossl.c
index 4a30628fbc..ceaa2f06b6 100644
--- a/crypto/ecdh/ech_ossl.c
+++ b/crypto/ecdh/ech_ossl.c
@@ -67,6 +67,7 @@
*
*/
+#define OPENSSL_FIPSAPI
#include <string.h>
#include <limits.h>
@@ -213,3 +214,15 @@ err:
if (buf) OPENSSL_free(buf);
return(ret);
}
+
+#ifdef OPENSSL_FIPSCANISTER
+/* FIPS stanadlone version of ecdh_check: just return FIPS method */
+ECDH_DATA *fips_ecdh_check(EC_KEY *key)
+ {
+ static ECDH_DATA rv = {
+ 0,0,0,
+ &openssl_ecdh_meth
+ };
+ return &rv;
+ }
+#endif