diff options
author | Padraic-O-Mhuiris <patrick.morris.310@gmail.com> | 2024-02-21T16·49+0000 |
---|---|---|
committer | Pádraic Ó Mhuiris <patrick.morris.310@gmail.com> | 2024-02-23T16·04+0000 |
commit | 5c3065b43a61a5fa019cbbb157984fc5eb81d439 (patch) | |
tree | 897a44fdb7da446413276861c13d2a2365ea5f4b /tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hashString.nix | |
parent | ffb134398dedcae6cd13cdf49b2cd57d43793bda (diff) |
feat(tvix/eval): implement `builtins.hashString` r/7597
Implements md5, sha1, sha256 and sha512 using the related crates from the RustCrypto hashes project (https://github.com/RustCrypto/hashes) Change-Id: I00730dea44ec9ef85309edc27addab0ae88814b8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11005 Tested-by: BuildkiteCI Reviewed-by: aspen <root@gws.fyi>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hashString.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hashString.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hashString.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hashString.nix new file mode 100644 index 000000000000..aed723d3670a --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hashString.nix @@ -0,0 +1,6 @@ +[ + (builtins.hashString "md5" "tvix") + (builtins.hashString "sha1" "tvix") + (builtins.hashString "sha256" "tvix") + (builtins.hashString "sha512" "tvix") +] |