From 7310bf39e0b6729bafc138631304b8e1edde839f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 6 Aug 2015 15:02:25 -0400 Subject: Added support for SHA3 hashed keys (in 8 varieties), when git-annex is built using the cryptonite library. While cryptohash has SHA3 support, it has not been updated for the final version of the spec. Note that cryptonite has not been ported to all arches that cryptohash builds on yet. --- Remote/Bup.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Remote') diff --git a/Remote/Bup.hs b/Remote/Bup.hs index 92ff7ab68..a253b0889 100644 --- a/Remote/Bup.hs +++ b/Remote/Bup.hs @@ -270,7 +270,7 @@ bup2GitRemote r bupRef :: Key -> String bupRef k | Git.Ref.legal True shown = shown - | otherwise = "git-annex-" ++ show (sha256 (fromString shown)) + | otherwise = "git-annex-" ++ show (sha2_256 (fromString shown)) where shown = key2file k -- cgit v1.2.3