diff --git a/cryptmt.go b/cryptmt.go index 9174a3a..6888667 100644 --- a/cryptmt.go +++ b/cryptmt.go @@ -26,9 +26,9 @@ func (c *Cipher) yield() (r byte) { return } -// NewCipher creates and returns a Cipher. The key argument should be the +// New creates and returns a Cipher. The key argument should be the // CryptMT key, 64 bytes. -func NewCipher(key []byte) (c *Cipher) { +func New(key []byte) (c *Cipher) { c = &Cipher{m: mtwist.New()} c.m.SeedFullState(key) c.accum = 1