NewCipher() -> New()

Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
Russ Magee 2020-02-05 20:56:57 -08:00
parent 269c74fe4a
commit ce6570ddcc
1 changed files with 2 additions and 2 deletions

View File

@ -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