]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crypto: Don't assert on valid IV length for Chacha20-Poly1305.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 9 Nov 2021 18:52:30 +0000 (10:52 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 23 Nov 2021 23:11:34 +0000 (15:11 -0800)
commit7ec9f24cdb8835dbd383c0b04e2cfda5ccccc38d
treeb6bb7f975a314a93fc9e2cf6470c5590a840a96c
parent8b495114eaa23f448a0a5c5b34d7495880d2e2b8
crypto: Don't assert on valid IV length for Chacha20-Poly1305.

The assertion checking for valid IV lengths added in 1833d6042c9a
was not properly updated to permit an IV length of 8 in commit
42dcd39528c6.

Reported by: syzbot+f0c0559b8be1d6eb28c7@syzkaller.appspotmail.com
Reviewed by: markj
Fixes: 42dcd39528c6 crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32860

(cherry picked from commit 442ad83e38e8fda46d9facbd1ddd92bc23e3773e)
sys/opencrypto/xform_chacha20_poly1305.c