Added ChaCha20+Poly1305 support (stand-alone, cipher suites).

This commit is contained in:
Thomas Pornin 2016-12-13 20:01:19 +01:00
parent 9e71c0673a
commit b42bd5972f
26 changed files with 1952 additions and 523 deletions

View file

@ -67,7 +67,7 @@ gcm_check_length(const br_sslrec_gcm_context *cc, size_t rlen)
* 16 bytes for the authentication tag (after the ciphertext)
*/
(void)cc;
return rlen >= 24 && rlen <= (16384 + rlen);
return rlen >= 24 && rlen <= (16384 + 24);
}
/*