enceve / crypto

The crypto repository contains some additional cryptographic packages for Go
GNU Lesser General Public License v3.0
25 stars 9 forks source link

Define one struct for poly1305 hash #14

Closed enceve closed 8 years ago

enceve commented 8 years ago

Poly1305 currently satisfies the hash.Hash interface, but poly1305 is insecure if a key is used twice - so there is the panic in Reset() It would be more idiomatic if poly1305 defines an own struct (with Write() , Sum(), Size() ...)