summaryrefslogtreecommitdiff
path: root/nix/libutil/hash.hh
Commit message (Collapse)AuthorAge
* daemon: Recognize SHA3 and BLAKE2s.Ludovic Courtès2020-06-27
| | | | | | | * nix/libutil/hash.hh (HashType): Add htSHA3_256, htSHA3_512, and htBLAKE2s_256. * nix/libutil/hash.cc (parseHashType, printHashType): Recognize them. * tests/store.scm ("add-to-store"): Test these algorithms.
* daemon: Map directly to gcrypt hash functions.Ludovic Courtès2020-06-27
| | | | | | * nix/libutil/hash.hh (HashType): Map directly to GCRY_MD_ values. (md5HashSize, sha1HashSize, sha256HashSize, sha512HashSize): Remove. * nix/libutil/hash.cc (Hash::Hash): Use 'gcry_md_get_algo_dlen'.
* daemon: Support SHA-512 hashes.Eelco Dolstra2015-12-02
| | | | | | | | | Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s). Co-authored-by: Ludovic Courtès <ludo@gnu.org>
* Merge branch 'nix' into 'master'.Ludovic Courtès2014-12-19