mirror of
				https://gogs.blitter.com/RLabs/cryptmt
				synced 2024-08-14 19:26:42 +00:00 
			
		
		
		
	NewCipher() -> New()
Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
		
							parent
							
								
									269c74fe4a
								
							
						
					
					
						commit
						ce6570ddcc
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue