diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-16 12:23:23 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-16 12:23:23 +0100 |
commit | e4f0f26bade2560b96ee66e719e464753befa433 (patch) | |
tree | f761ec8e43de99ae95e57e8979311766a2ecc051 | |
parent | 5368fe541c023130843cea361d779addb936b95c (diff) | |
download | busybox-w32-e4f0f26bade2560b96ee66e719e464753befa433.tar.gz busybox-w32-e4f0f26bade2560b96ee66e719e464753befa433.tar.bz2 busybox-w32-e4f0f26bade2560b96ee66e719e464753befa433.zip |
sha3: s/sha3_process_block76/sha3_process_block72/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/hash_md5_sha.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c index 15588dcfe..d23d4f639 100644 --- a/libbb/hash_md5_sha.c +++ b/libbb/hash_md5_sha.c | |||
@@ -933,7 +933,7 @@ enum { | |||
933 | /* | 933 | /* |
934 | * In the crypto literature this function is usually called Keccak-f(). | 934 | * In the crypto literature this function is usually called Keccak-f(). |
935 | */ | 935 | */ |
936 | static void sha3_process_block76(uint64_t *state) | 936 | static void sha3_process_block72(uint64_t *state) |
937 | { | 937 | { |
938 | enum { NROUNDS = 24 }; | 938 | enum { NROUNDS = 24 }; |
939 | 939 | ||
@@ -1091,7 +1091,7 @@ void FAST_FUNC sha3_hash(sha3_ctx_t *ctx, const void *buf, size_t bytes) | |||
1091 | bytes--; | 1091 | bytes--; |
1092 | bytes_queued++; | 1092 | bytes_queued++; |
1093 | if (bytes_queued == SHA3_IBLK_BYTES) { | 1093 | if (bytes_queued == SHA3_IBLK_BYTES) { |
1094 | sha3_process_block76(ctx->state); | 1094 | sha3_process_block72(ctx->state); |
1095 | bytes_queued = 0; | 1095 | bytes_queued = 0; |
1096 | } | 1096 | } |
1097 | } | 1097 | } |
@@ -1111,7 +1111,7 @@ void FAST_FUNC sha3_hash(sha3_ctx_t *ctx, const void *buf, size_t bytes) | |||
1111 | data += sizeof(long); | 1111 | data += sizeof(long); |
1112 | } while (--count); | 1112 | } while (--count); |
1113 | 1113 | ||
1114 | sha3_process_block76(ctx->state); | 1114 | sha3_process_block72(ctx->state); |
1115 | 1115 | ||
1116 | bytes -= SHA3_IBLK_BYTES; | 1116 | bytes -= SHA3_IBLK_BYTES; |
1117 | } | 1117 | } |
@@ -1134,7 +1134,7 @@ void FAST_FUNC sha3_end(sha3_ctx_t *ctx, uint8_t *hashval) | |||
1134 | buffer[ctx->bytes_queued] ^= 1; | 1134 | buffer[ctx->bytes_queued] ^= 1; |
1135 | buffer[SHA3_IBLK_BYTES - 1] ^= 0x80; | 1135 | buffer[SHA3_IBLK_BYTES - 1] ^= 0x80; |
1136 | 1136 | ||
1137 | sha3_process_block76(ctx->state); | 1137 | sha3_process_block72(ctx->state); |
1138 | 1138 | ||
1139 | /* Output */ | 1139 | /* Output */ |
1140 | memcpy(hashval, ctx->state, 64); | 1140 | memcpy(hashval, ctx->state, 64); |