aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bhash.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/bhash.go b/bhash.go
deleted file mode 100644
index 04591a2..0000000
--- a/bhash.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package main
-
-import (
- "hash"
-
- "golang.org/x/crypto/blowfish"
-)
-
-var magic = []byte("OxychromaticBlowfishSwatDynamite")
-
-const rounds = 64 // fixed
-
-// blowfish hash
-type digest struct {
- c *blowfish.Cipher
-}
-
-func (d *digest) Write(p []byte) (n int, err error) {
- panic("not implemented")
-}
-
-func (d *digest) Sum(b []byte) []byte {
- panic("not implemented")
-}
-
-func (d *digest) Reset() {
- panic("not implemented")
-}
-
-func (d *digest) Size() int {
- return blowfish.BlockSize * 4
-}
-
-func (d *digest) BlockSize() int {
- return blowfish.BlockSize
-}
-
-func NewBHash() hash.Hash {
- d := &digest{}
- d.Reset()
- return d
-}