summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/sha256
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/crypto/sha256')
-rw-r--r--src/pkg/crypto/sha256/sha256.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/crypto/sha256/sha256.go b/src/pkg/crypto/sha256/sha256.go
index 57a8ffa0d..69b356b4e 100644
--- a/src/pkg/crypto/sha256/sha256.go
+++ b/src/pkg/crypto/sha256/sha256.go
@@ -6,10 +6,16 @@
package sha256
import (
+ "crypto"
"hash"
"os"
)
+func init() {
+ crypto.RegisterHash(crypto.SHA224, New224)
+ crypto.RegisterHash(crypto.SHA256, New)
+}
+
// The size of a SHA256 checksum in bytes.
const Size = 32