CC3XX: Fix comparison length for tag verification in CHACHA20-POLY1305

A bug in Chacha20-Poly1305 when single part functions are
not implemented using multipart functions, allows to verify
a tag by inspecting the first 4 bytes only instead of the
full 16 bytes. Credit to Nordic Semiconductor for discovering
the issue.

Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: Ieb91efe6ea2c86049ef398d783be7959238a7422
1 file changed