hash: Add `open-sha256-port'.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 Jul 2013 20:38:03 +0000 (22:38 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 2 Jul 2013 20:38:03 +0000 (22:38 +0200)
commit69927e78de91b11d1fa93ffbf9a7cf915827b6e3
tree41d5d43cf728fa799e989d6cd94e19f71192d34c
parent72626a71a96b02fccb2281713c1fdcd09aa194c4
hash: Add `open-sha256-port'.

* guix/hash.scm (GCRY_MD_SHA256): New macro.
  (sha256): Use it.
  (open-sha256-md, md-write, md-read, md-close, open-sha256-port,
  port-sha256): New procedures.
* tests/hash.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
Makefile.am
guix/hash.scm
tests/hash.scm [new file with mode: 0644]