diff options
author | jsing <> | 2014-05-08 16:05:38 +0000 |
---|---|---|
committer | jsing <> | 2014-05-08 16:05:38 +0000 |
commit | 7779067b7b5b2153b20dc72d5116caaa3383df0c (patch) | |
tree | bccc71e2bc50ab48238241efca5212c0b3a7faa5 /src/lib/libcrypto/evp/m_dss.c | |
parent | b590070115ee73703baaa8c896eed6bb11a45b0e (diff) | |
download | openbsd-7779067b7b5b2153b20dc72d5116caaa3383df0c.tar.gz openbsd-7779067b7b5b2153b20dc72d5116caaa3383df0c.tar.bz2 openbsd-7779067b7b5b2153b20dc72d5116caaa3383df0c.zip |
More KNF.
Diffstat (limited to 'src/lib/libcrypto/evp/m_dss.c')
-rw-r--r-- | src/lib/libcrypto/evp/m_dss.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/m_dss.c b/src/lib/libcrypto/evp/m_dss.c index 1516b9da3f..9066b7b88f 100644 --- a/src/lib/libcrypto/evp/m_dss.c +++ b/src/lib/libcrypto/evp/m_dss.c | |||
@@ -67,17 +67,20 @@ | |||
67 | 67 | ||
68 | #ifndef OPENSSL_NO_SHA | 68 | #ifndef OPENSSL_NO_SHA |
69 | 69 | ||
70 | static int init(EVP_MD_CTX *ctx) | 70 | static int |
71 | init(EVP_MD_CTX *ctx) | ||
71 | { | 72 | { |
72 | return SHA1_Init(ctx->md_data); | 73 | return SHA1_Init(ctx->md_data); |
73 | } | 74 | } |
74 | 75 | ||
75 | static int update(EVP_MD_CTX *ctx, const void *data, size_t count) | 76 | static int |
77 | update(EVP_MD_CTX *ctx, const void *data, size_t count) | ||
76 | { | 78 | { |
77 | return SHA1_Update(ctx->md_data, data, count); | 79 | return SHA1_Update(ctx->md_data, data, count); |
78 | } | 80 | } |
79 | 81 | ||
80 | static int final(EVP_MD_CTX *ctx, unsigned char *md) | 82 | static int |
83 | final(EVP_MD_CTX *ctx, unsigned char *md) | ||
81 | { | 84 | { |
82 | return SHA1_Final(md, ctx->md_data); | 85 | return SHA1_Final(md, ctx->md_data); |
83 | } | 86 | } |