Ludovic Courtès
|
8e6c1415d8
|
daemon: Recognize SHA3 and BLAKE2s.
* 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.
|
2020-06-27 23:42:20 +02:00 |
|
Ludovic Courtès
|
3fb6b8f304
|
daemon: Map directly to gcrypt hash functions.
* 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'.
|
2020-06-27 23:42:20 +02:00 |
|
Eelco Dolstra
|
29d3242e5c
|
daemon: Support SHA-512 hashes.
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>
|
2015-12-02 19:37:59 +02:00 |
|
Ludovic Courtès
|
36457566f9
|
Merge branch 'nix' into 'master'.
|
2014-12-19 22:47:37 +01:00 |
|