vere/aes_siv: check claimed length

This commit is contained in:
Ted Blackman 2020-11-06 15:06:46 -05:00
parent d44b9b8431
commit e4d2cd3fa2

View File

@ -330,6 +330,9 @@ u3qea_sivc_de(u3_atom key,
if ( u3r_met(3, key) > 64 ) {
return u3_none;
}
if ( c3y == u3qa_gth(u3r_met(3, txt), len) ) {
return u3_none;
}
u3r_bytes_reverse(0, 64, key_y, key);
return _siv_de(key_y, 64, ads, iv, len, txt);