Re: ChachaPoly-02: import Poly1305 implementation by Andrew-Moon

2015-10-27 Thread Mike Belopuhov
On Mon, Oct 26, 2015 at 18:28 +0100, Mike Belopuhov wrote: > OK? > A few people asked me to use style(9)'ed version from libressl and cut down on my own changes. Here we go with an updated version. This will require an update to the next diff as well. OK? --- sys/crypto/poly1305.c | 295

Re: ChachaPoly-02: import Poly1305 implementation by Andrew-Moon

2015-10-26 Thread Reyk Floeter
On Mon, Oct 26, 2015 at 06:28:19PM +0100, Mike Belopuhov wrote: > OK? > Are these modifications worth doing or wouldn't it be better to keep the differences to the reference implementation as minimal as possible? Even if we don't use the leftover bytes. I think I'd be nice to have the same code

ChachaPoly-02: import Poly1305 implementation by Andrew-Moon

2015-10-26 Thread Mike Belopuhov
OK? --- sys/crypto/poly1305.c | 209 ++ sys/crypto/poly1305.h | 23 ++ 2 files changed, 232 insertions(+) create mode 100644 sys/crypto/poly1305.c create mode 100644 sys/crypto/poly1305.h diff --git sys/crypto/poly1305.c sys/crypto/poly1305.