Closed anitgandhi closed 6 years ago
ciph
and prf
should have a signature closer to
func (f *Cipher) ciph(output, input []byte) error
to reduce escapes to the heap for the return value.
Majority of allocations are coming from the fact that everything in this library operates on strings. In theory, the operations can be changed to using utf8 package backed by byte slices.
Description of Enhancement