pk-crypto: Add a few sexp utility procedures.
authorLudovic Courtès <ludo@gnu.org>
Fri, 20 Dec 2013 14:22:15 +0000 (15:22 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 20 Dec 2013 14:22:15 +0000 (15:22 +0100)
commitce507041f79bd66f54ce406d20b9e33a328a3f3d
treecf19d2a4e7b5a04c335eadf92503eb7ba1eede7e
parent971cb56dd0c1a1cb265d2adfe41730cd2f8c5c22
pk-crypto: Add a few sexp utility procedures.

* guix/pk-crypto.scm (gcry-sexp-car, gcry-sexp-cdr, gcry-sexp-nth,
  gcry-sexp-nth-data, dereference-size_t, latin1-string->bytevector,
  hash-data->bytevector): New procedures.
* tests/pk-crypto.scm ("gcry-sexp-car + cdr", "gcry-sexp-nth",
  "gcry-sexp-nth-data", "bytevector->hash-data->bytevector"): New tests.
guix/pk-crypto.scm
tests/pk-crypto.scm