diff options
author | Niels Möller <nisse@lysator.liu.se> | 2010-03-24 22:32:49 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2010-03-24 22:32:49 +0100 |
commit | d35e6f95f065b8fa6960e7e1d637bcf2ac32192d (patch) | |
tree | ae752b020c4d524033b0606c2979e2c1846ffe2e /sha.h | |
parent | 49b2a7ebac006659e2a85931b180f1b9c8683339 (diff) | |
download | nettle-d35e6f95f065b8fa6960e7e1d637bcf2ac32192d.tar.gz |
* sha512.c: Reorganized to use _nettle_sha512_compress.
* sha512-compress.c (_nettle_sha512_compress): Compression
function extracted from sha512.c to a new file.
* Makefile.in (nettle_SOURCES): Added sha256-compress.c and
sha512-compress.c.
Rev: nettle/ChangeLog:1.57
Rev: nettle/Makefile.in:1.18
Rev: nettle/sha.h:1.4
Rev: nettle/sha512-compress.c:1.1
Rev: nettle/sha512.c:1.2
Diffstat (limited to 'sha.h')
-rw-r--r-- | sha.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -141,6 +141,12 @@ sha512_digest(struct sha512_ctx *ctx, unsigned length, uint8_t *digest); +/* Internal compression function. STATE points to 8 uint64_t words, + DATA points to 128 bytes of input data, possibly unaligned, and K + points to the table of constants. */ +void +_nettle_sha512_compress(uint64_t *state, const uint8_t *data, const uint64_t *k); + #ifdef __cplusplus } #endif |