plan9fox/sys
cinap_lenrek 254031cf70 libsec: add chacha20 poly1305 aead, allow 64 bit iv's for chacha, add tsmemcmp()
chacha20 comes in two variants: ietf rfc7539, using 96 bit iv and 32 bit counter
and draft-agl-tls-chacha20poly1305 using 64 bit iv and a 64 bit counter. so
setupChachastate() now takes a ivlen argument which sets the mode.

add ccpoly_encrypt()/ccpoly_decrypt() routines.

to implement timing safe ccpoly_decrypt(), a constant time memcmp was needed, so
adding tsmemcmp() to libsec.
2015-11-26 15:25:10 +01:00
..
doc /sys/doc: permissions for cleanps, mkdirlist, mkfilelist 2012-10-20 19:09:54 +02:00
games/lib fortunes: [9fans] FUSE on Plan9 2015-10-31 16:09:15 -04:00
include libsec: add chacha20 poly1305 aead, allow 64 bit iv's for chacha, add tsmemcmp() 2015-11-26 15:25:10 +01:00
lib acid/leak: fix endless loop for B2NB(b) == b case (thanks mischief) 2015-10-19 00:20:33 +02:00
man libsec: add chacha20 poly1305 aead, allow 64 bit iv's for chacha, add tsmemcmp() 2015-11-26 15:25:10 +01:00
src libsec: add chacha20 poly1305 aead, allow 64 bit iv's for chacha, add tsmemcmp() 2015-11-26 15:25:10 +01:00