summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/m_dss1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/m_dss1.c')
-rw-r--r--src/lib/libcrypto/evp/m_dss1.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/libcrypto/evp/m_dss1.c b/src/lib/libcrypto/evp/m_dss1.c
index 23b90d0538..f5668ebda0 100644
--- a/src/lib/libcrypto/evp/m_dss1.c
+++ b/src/lib/libcrypto/evp/m_dss1.c
@@ -67,14 +67,7 @@ static int init(EVP_MD_CTX *ctx)
67 { return SHA1_Init(ctx->md_data); } 67 { return SHA1_Init(ctx->md_data); }
68 68
69static int update(EVP_MD_CTX *ctx,const void *data,unsigned long count) 69static int update(EVP_MD_CTX *ctx,const void *data,unsigned long count)
70#ifndef OPENSSL_FIPS
71 { return SHA1_Update(ctx->md_data,data,count); } 70 { return SHA1_Update(ctx->md_data,data,count); }
72#else
73 {
74 OPENSSL_assert(sizeof(count)<=sizeof(size_t));
75 return SHA1_Update(ctx->md_data,data,count);
76 }
77#endif
78 71
79static int final(EVP_MD_CTX *ctx,unsigned char *md) 72static int final(EVP_MD_CTX *ctx,unsigned char *md)
80 { return SHA1_Final(md,ctx->md_data); } 73 { return SHA1_Final(md,ctx->md_data); }
@@ -84,7 +77,7 @@ static const EVP_MD dss1_md=
84 NID_dsa, 77 NID_dsa,
85 NID_dsaWithSHA1, 78 NID_dsaWithSHA1,
86 SHA_DIGEST_LENGTH, 79 SHA_DIGEST_LENGTH,
87 EVP_MD_FLAG_FIPS, 80 0,
88 init, 81 init,
89 update, 82 update,
90 final, 83 final,