SHA-1-Hashcode impl

Implements SHA-1-Hashcode.

Summary
SHA-1-Hashcode implImplements SHA-1-Hashcode.
CopyrightThis program is free software.
C-kern/api/math/hash/sha1.hHeader file SHA-1-Hashcode.
C-kern/math/hash/sha1.cImplementation file SHA-1-Hashcode impl.
update_sha1hashImplements calculating hash of 1 512 bit block.
test

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2011 Jörg Seebohn

C-kern/api/math/hash/sha1.h

Header file SHA-1-Hashcode.

C-kern/math/hash/sha1.c

Implementation file SHA-1-Hashcode impl.

update_sha1hash

static void update_sha1hash(sha1_hash_t *sha1,
const uint8_t block[64])

Implements calculating hash of 1 512 bit block.  See http://de.wikipedia.org/wiki/Sha1#SHA-1-Pseudocode.

test

Offers interface to calculate sha1 hash value of data of arbitrary size in bytes.
Implements SHA-1-Hashcode.
static void update_sha1hash(sha1_hash_t *sha1,
const uint8_t block[64])
Implements calculating hash of 1 512 bit block.
Close