aboutsummaryrefslogtreecommitdiff
path: root/bhash.go
diff options
context:
space:
mode:
Diffstat (limited to 'bhash.go')
-rw-r--r--bhash.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/bhash.go b/bhash.go
index 19c1ee8..04591a2 100644
--- a/bhash.go
+++ b/bhash.go
@@ -8,6 +8,8 @@ import (
var magic = []byte("OxychromaticBlowfishSwatDynamite")
+const rounds = 64 // fixed
+
// blowfish hash
type digest struct {
c *blowfish.Cipher
@@ -26,11 +28,11 @@ func (d *digest) Reset() {
}
func (d *digest) Size() int {
- panic("not implemented")
+ return blowfish.BlockSize * 4
}
func (d *digest) BlockSize() int {
- return d.c.BlockSize()
+ return blowfish.BlockSize
}
func NewBHash() hash.Hash {