projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nanosecond: fiologparser_hist set default --group_nr to 29 to match stat.h FIO_IO_U_P...
[fio.git]
/
crc
/
sha1.c
diff --git
a/crc/sha1.c
b/crc/sha1.c
index 117fbd9c2938b35a57b691ab05cf5a5acb8bcfad..8d64c8ee7b836e9322c8c6b9dde01b718f1416d6 100644
(file)
--- a/
crc/sha1.c
+++ b/
crc/sha1.c
@@
-55,7
+55,7
@@
void fio_sha1_update(struct fio_sha1_ctx *ctx, const void *data,
memcpy(ctx->W, data, len);
}
memcpy(ctx->W, data, len);
}
-void fio_sha1_final(
unsigned char hashout[20],
struct fio_sha1_ctx *ctx)
+void fio_sha1_final(struct fio_sha1_ctx *ctx)
{
static const unsigned char pad[64] = { 0x80 };
unsigned int padlen[2];
{
static const unsigned char pad[64] = { 0x80 };
unsigned int padlen[2];
@@
-69,11
+69,6
@@
void fio_sha1_final(unsigned char hashout[20], struct fio_sha1_ctx *ctx)
i = ctx->size & 63;
fio_sha1_update(ctx, pad, 1+ (63 & (55 - i)));
fio_sha1_update(ctx, padlen, 8);
i = ctx->size & 63;
fio_sha1_update(ctx, pad, 1+ (63 & (55 - i)));
fio_sha1_update(ctx, padlen, 8);
-
- /* Output hash
- */
- for (i = 0; i < 5; i++)
- ((unsigned int *)hashout)[i] = htonl(ctx->H[i]);
}
#if defined(__i386__) || defined(__x86_64__)
}
#if defined(__i386__) || defined(__x86_64__)