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