diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-08-06 15:02:25 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-08-06 15:02:25 -0400 |
commit | 7310bf39e0b6729bafc138631304b8e1edde839f (patch) | |
tree | 89027a1af6abaf330996c142a96bbe8df0ced3ee /Remote | |
parent | 9cd989ff0da857fad0d04f2961a0e1baa62d26b0 (diff) |
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.
Diffstat (limited to 'Remote')
-rw-r--r-- | Remote/Bup.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |