]> Savannah Git Hosting - gnulib.git/commit
crypto/gc-sha256, crypto/gc-sha512: New modules.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Aug 2019 15:34:29 +0000 (17:34 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Aug 2019 15:34:29 +0000 (17:34 +0200)
commit387edff2fbcea3bfbf52ff60e31e4890192a3d37
tree9054c574d21960cb067d8bb203d576b7297ee3d7
parent06ba5700871cfae584c604dafa93a3e3a4f23048
crypto/gc-sha256, crypto/gc-sha512: New modules.

* lib/gc.h (gc_sha256, gc_sha512): New declarations.
* lib/gc-gnulib.c: Include sha256.h, sha512.h.
(MAX_DIGEST_SIZE): Set to 64.
(_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
(gc_sha256, gc_sha512): New functions.
* lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
* modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
* modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
ChangeLog
lib/gc-gnulib.c
lib/gc-libgcrypt.c
lib/gc.h
modules/crypto/gc-sha256 [new file with mode: 0644]
modules/crypto/gc-sha512 [new file with mode: 0644]