diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-03-08 11:47:28 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-03-08 11:56:20 +0100 |
commit | 33286075b9c2ecd27607b5674c68909dd528473a (patch) | |
tree | bd438924700e215fe9cba3d1168dba6e6dfad597 /gnu/system | |
parent | 3aab8851442713f6ad748ffebb055c5e9eae1bd4 (diff) | |
download | guix-33286075b9c2ecd27607b5674c68909dd528473a.tar guix-33286075b9c2ecd27607b5674c68909dd528473a.tar.gz |
hash: Add 'sha1'.
* guix/hash.scm (GCRY_MD_SHA1): New macro.
(bytevector-hash): New procedure.
(sha256): Express in terms of 'bytevector-hash'.
(sha1): New procedure.
* tests/hash.scm ("sha1, empty", "sha1, hello"): New tests.
Diffstat (limited to 'gnu/system')
0 files changed, 0 insertions, 0 deletions