aboutsummaryrefslogtreecommitdiff
path: root/bhash.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-15 02:45:44 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-15 02:45:44 +0200
commit03637ede32a1152c32eb7d87eb9b1638a037ab91 (patch)
tree13a306bbc66fbe5a75c0f4d1c93d7d49aa2d1bfe /bhash.go
parent34424bc2aa0645871bd043a20762f62cac0ae24d (diff)
deadcode
Diffstat (limited to 'bhash.go')
-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
-}