From 63791eb05b236afcea510d769a8943f8be3dbc9c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Jan 2005 12:03:04 +0000 Subject: * Add SHA-256. * Tests for the various hashes. --- src/nix-hash/nix-hash.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nix-hash') diff --git a/src/nix-hash/nix-hash.cc b/src/nix-hash/nix-hash.cc index 6a044972afb7..360e07960b0e 100644 --- a/src/nix-hash/nix-hash.cc +++ b/src/nix-hash/nix-hash.cc @@ -25,6 +25,7 @@ void run(Strings args) if (i == args.end()) throw UsageError("`--type' requires an argument"); if (*i == "md5") ht = htMD5; else if (*i == "sha1") ht = htSHA1; + else if (*i == "sha256") ht = htSHA256; else throw UsageError(format("unknown hash type `%1%'") % *i); } else -- cgit 1.4.1