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_sha.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_sha.c')
| -rw-r--r-- | src/lib/libcrypto/evp/m_sha.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/m_sha.c b/src/lib/libcrypto/evp/m_sha.c index d2d275f833..1b82e61c26 100644 --- a/src/lib/libcrypto/evp/m_sha.c +++ b/src/lib/libcrypto/evp/m_sha.c | |||
| @@ -69,17 +69,20 @@ | |||
| 69 | #endif | 69 | #endif |
| 70 | #include "evp_locl.h" | 70 | #include "evp_locl.h" |
| 71 | 71 | ||
| 72 | static int init(EVP_MD_CTX *ctx) | 72 | static int |
| 73 | init(EVP_MD_CTX *ctx) | ||
| 73 | { | 74 | { |
| 74 | return SHA_Init(ctx->md_data); | 75 | return SHA_Init(ctx->md_data); |
| 75 | } | 76 | } |
| 76 | 77 | ||
| 77 | static int update(EVP_MD_CTX *ctx, const void *data, size_t count) | 78 | static int |
| 79 | update(EVP_MD_CTX *ctx, const void *data, size_t count) | ||
| 78 | { | 80 | { |
| 79 | return SHA_Update(ctx->md_data, data, count); | 81 | return SHA_Update(ctx->md_data, data, count); |
| 80 | } | 82 | } |
| 81 | 83 | ||
| 82 | static int final(EVP_MD_CTX *ctx, unsigned char *md) | 84 | static int |
| 85 | final(EVP_MD_CTX *ctx, unsigned char *md) | ||
| 83 | { | 86 | { |
| 84 | return SHA_Final(md, ctx->md_data); | 87 | return SHA_Final(md, ctx->md_data); |
| 85 | } | 88 | } |
