diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-11-04 16:31:06 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-11-04 16:37:49 +0100 |
commit | 6f1743b1a5116ca57a60b481ee4083c891b7a334 (patch) | |
tree | e18f095051d8126b7f782355f2deba529faa2770 /tests/lang/eval-okay-hash.nix | |
parent | a6ca68a70c3bc0b2e6abad70346c99642a896f9f (diff) |
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).
Diffstat (limited to 'tests/lang/eval-okay-hash.nix')
-rw-r--r-- | tests/lang/eval-okay-hash.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/lang/eval-okay-hash.nix b/tests/lang/eval-okay-hash.nix index 2fff17f84..b0f62b245 100644 --- a/tests/lang/eval-okay-hash.nix +++ b/tests/lang/eval-okay-hash.nix @@ -1,7 +1,4 @@ let - md5 = builtins.hashString "md5"; - sha1 = builtins.hashString "sha1"; - sha256 = builtins.hashString "sha256"; strings = [ "" "text 1" "text 2" ]; in - (builtins.map md5 strings) ++ (builtins.map sha1 strings) ++ (builtins.map sha256 strings) + builtins.concatLists (map (hash: map (builtins.hashString hash) strings) ["md5" "sha1" "sha256" "sha512"]) |