aboutsummaryrefslogtreecommitdiff
path: root/object/id/algorithm_tables.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 05:51:15 +0000
committerGravatar Runxi Yu2026-03-30 05:51:15 +0000
commit62b653a199af145b8ae00354eb051e29ff32bca9 (patch)
tree82720bc3adecaa30e35b167b58727d10485233cf /object/id/algorithm_tables.go
parentobject/tree: Add helpers and cleanup (diff)
signatureNo signature
object/*: Fix lints
Diffstat (limited to 'object/id/algorithm_tables.go')
-rw-r--r--object/id/algorithm_tables.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/object/id/algorithm_tables.go b/object/id/algorithm_tables.go
index 92b77de0..e4ec3257 100644
--- a/object/id/algorithm_tables.go
+++ b/object/id/algorithm_tables.go
@@ -61,10 +61,12 @@ func init() { //nolint:gochecknoinits
}
info.emptyTree = info.sum(emptyTreeInput)
+
algorithmByName[info.name] = algo
if info.signatureHeaderName != "" {
algorithmBySignatureHeaderName[info.signatureHeaderName] = algo
}
+
supportedAlgorithms = append(supportedAlgorithms, algo)
}
}