summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/sha512/sha512.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/crypto/sha512/sha512.go')
-rw-r--r--src/pkg/crypto/sha512/sha512.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/crypto/sha512/sha512.go b/src/pkg/crypto/sha512/sha512.go
index c3cda97d9..7e9f330e5 100644
--- a/src/pkg/crypto/sha512/sha512.go
+++ b/src/pkg/crypto/sha512/sha512.go
@@ -6,10 +6,16 @@
package sha512
import (
+ "crypto"
"hash"
"os"
)
+func init() {
+ crypto.RegisterHash(crypto.SHA384, New384)
+ crypto.RegisterHash(crypto.SHA512, New)
+}
+
// The size of a SHA512 checksum in bytes.
const Size = 64