diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-01 13:39:45 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-01 13:39:45 +0000 |
commit | 65300dcfb04bae643ea7b8f42ff8c8f1b1210a9e (patch) | |
tree | b3cebcf5d9b7c05745dcd26cc13de2805098c224 /crypto/whrlpool | |
parent | 9ddc574f9aed0fbf5b19c50a495de608550174c7 (diff) | |
download | openssl-65300dcfb04bae643ea7b8f42ff8c8f1b1210a9e.tar.gz |
Prohibit use of low level digest APIs in FIPS mode.
Diffstat (limited to 'crypto/whrlpool')
-rw-r--r-- | crypto/whrlpool/whrlpool.h | 3 | ||||
-rw-r--r-- | crypto/whrlpool/wp_dgst.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/crypto/whrlpool/whrlpool.h b/crypto/whrlpool/whrlpool.h index 03c91da115..9e01f5b076 100644 --- a/crypto/whrlpool/whrlpool.h +++ b/crypto/whrlpool/whrlpool.h @@ -24,6 +24,9 @@ typedef struct { } WHIRLPOOL_CTX; #ifndef OPENSSL_NO_WHIRLPOOL +#ifdef OPENSSL_FIPS +int private_WHIRLPOOL_Init(WHIRLPOOL_CTX *c); +#endif int WHIRLPOOL_Init (WHIRLPOOL_CTX *c); int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes); void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits); diff --git a/crypto/whrlpool/wp_dgst.c b/crypto/whrlpool/wp_dgst.c index ee5c5c1bf3..7e28bef51d 100644 --- a/crypto/whrlpool/wp_dgst.c +++ b/crypto/whrlpool/wp_dgst.c @@ -52,9 +52,10 @@ */ #include "wp_locl.h" +#include <openssl/crypto.h> #include <string.h> -int WHIRLPOOL_Init (WHIRLPOOL_CTX *c) +fips_md_init(WHIRLPOOL) { memset (c,0,sizeof(*c)); return(1); |