summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko2013-01-16 12:23:23 +0100
committerDenys Vlasenko2013-01-16 12:23:23 +0100
commite4f0f26bade2560b96ee66e719e464753befa433 (patch)
treef761ec8e43de99ae95e57e8979311766a2ecc051 /libbb
parent5368fe541c023130843cea361d779addb936b95c (diff)
downloadbusybox-e4f0f26bade2560b96ee66e719e464753befa433.zip
busybox-e4f0f26bade2560b96ee66e719e464753befa433.tar.gz
sha3: s/sha3_process_block76/sha3_process_block72/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/hash_md5_sha.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c
index 15588dc..d23d4f6 100644
--- a/libbb/hash_md5_sha.c
+++ b/libbb/hash_md5_sha.c
@@ -933,7 +933,7 @@ enum {
/*
* In the crypto literature this function is usually called Keccak-f().
*/
-static void sha3_process_block76(uint64_t *state)
+static void sha3_process_block72(uint64_t *state)
{
enum { NROUNDS = 24 };
@@ -1091,7 +1091,7 @@ void FAST_FUNC sha3_hash(sha3_ctx_t *ctx, const void *buf, size_t bytes)
bytes--;
bytes_queued++;
if (bytes_queued == SHA3_IBLK_BYTES) {
- sha3_process_block76(ctx->state);
+ sha3_process_block72(ctx->state);
bytes_queued = 0;
}
}
@@ -1111,7 +1111,7 @@ void FAST_FUNC sha3_hash(sha3_ctx_t *ctx, const void *buf, size_t bytes)
data += sizeof(long);
} while (--count);
- sha3_process_block76(ctx->state);
+ sha3_process_block72(ctx->state);
bytes -= SHA3_IBLK_BYTES;
}
@@ -1134,7 +1134,7 @@ void FAST_FUNC sha3_end(sha3_ctx_t *ctx, uint8_t *hashval)
buffer[ctx->bytes_queued] ^= 1;
buffer[SHA3_IBLK_BYTES - 1] ^= 0x80;
- sha3_process_block76(ctx->state);
+ sha3_process_block72(ctx->state);
/* Output */
memcpy(hashval, ctx->state, 64);