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 }