32a1eb8025
* guix/pk-crypto.scm (bytevector->hash-data): Add #:key-type parameter. Use the 'pkcs1' flag when KEY-TYPE is 'rsa', and 'rfc6979' when KEY-TYPE is 'ecc' or 'dsa'. (key-type): New procedure. * guix/scripts/authenticate.scm (read-hash-data): Add 'key-type' parameter. Pass it to 'bytevector->hash-data'. Adjust caller accordingly. * tests/pk-crypto.scm (%ecc-key-pair): New variable. ("key-type"): New test. ("sign + verify"): Pass #:key-type to 'bytevector->hash-data'. ("sign + verify, Ed25519"): New test. |
||
---|---|---|
.. | ||
archive.scm | ||
authenticate.scm | ||
build.scm | ||
download.scm | ||
gc.scm | ||
hash.scm | ||
import.scm | ||
offload.scm | ||
package.scm | ||
pull.scm | ||
refresh.scm | ||
substitute-binary.scm | ||
system.scm |