From 03637ede32a1152c32eb7d87eb9b1638a037ab91 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 15 Apr 2017 02:45:44 +0200 Subject: deadcode --- bhash.go | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 bhash.go (limited to 'bhash.go') 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 -} -- cgit v1.2.3