summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha256.c
diff options
context:
space:
mode:
authormiod <>2014-05-01 11:11:37 +0000
committermiod <>2014-05-01 11:11:37 +0000
commit7b03fe01b152af99e43b7fc69af8ce116432c5ec (patch)
tree742a52c092c1ba5efcb3093ba62e773dd11f39b9 /src/lib/libcrypto/sha/sha256.c
parent3cd5f8038dae82ff8e027c0a63eab71ece62b0fe (diff)
downloadopenbsd-7b03fe01b152af99e43b7fc69af8ce116432c5ec.tar.gz
openbsd-7b03fe01b152af99e43b7fc69af8ce116432c5ec.tar.bz2
openbsd-7b03fe01b152af99e43b7fc69af8ce116432c5ec.zip
Remove fips_md_init() macro indirection for digest algorithms, used by the
OpenSSL FIPS module to prevent forbidden digests to be allowed. No functional change but readability. ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/sha/sha256.c')
-rw-r--r--src/lib/libcrypto/sha/sha256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/sha/sha256.c b/src/lib/libcrypto/sha/sha256.c
index e767afde5a..cf9c9a050b 100644
--- a/src/lib/libcrypto/sha/sha256.c
+++ b/src/lib/libcrypto/sha/sha256.c
@@ -17,7 +17,7 @@
17 17
18const char SHA256_version[]="SHA-256" OPENSSL_VERSION_PTEXT; 18const char SHA256_version[]="SHA-256" OPENSSL_VERSION_PTEXT;
19 19
20fips_md_init_ctx(SHA224, SHA256) 20int SHA224_Init(SHA256_CTX *c)
21 { 21 {
22 memset (c,0,sizeof(*c)); 22 memset (c,0,sizeof(*c));
23 c->h[0]=0xc1059ed8UL; c->h[1]=0x367cd507UL; 23 c->h[0]=0xc1059ed8UL; c->h[1]=0x367cd507UL;
@@ -28,7 +28,7 @@ fips_md_init_ctx(SHA224, SHA256)
28 return 1; 28 return 1;
29 } 29 }
30 30
31fips_md_init(SHA256) 31int SHA256_Init(SHA256_CTX *c)
32 { 32 {
33 memset (c,0,sizeof(*c)); 33 memset (c,0,sizeof(*c));
34 c->h[0]=0x6a09e667UL; c->h[1]=0xbb67ae85UL; 34 c->h[0]=0x6a09e667UL; c->h[1]=0xbb67ae85UL;