aboutsummaryrefslogtreecommitdiff
path: root/hash_sha256.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-15 00:00:00 +0000
committerGravatar Runxi Yu2025-11-15 00:00:00 +0000
commit6655e9f74eac800e26f57ebdb143111726e8b73d (patch)
treedb36fffb1dac361f0ca42023d747081fefaeb14f /hash_sha256.go
parentAdd initial support for multi pack indexes (diff)
signature
Use SHA-256 by default
Diffstat (limited to 'hash_sha256.go')
-rw-r--r--hash_sha256.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/hash_sha256.go b/hash_sha256.go
new file mode 100644
index 00000000..e35eab34
--- /dev/null
+++ b/hash_sha256.go
@@ -0,0 +1,11 @@
+//go:build !sha1
+
+package furgit
+
+import (
+ "crypto/sha256"
+)
+
+const HashSize = sha256.Size
+
+var newHash = sha256.Sum256