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

@ -327,7 +327,10 @@ u3qea_sivc_de(u3_atom key,
u3_atom txt) u3_atom txt)
{ {
c3_y key_y[64]; c3_y key_y[64];
if (u3r_met(3, key) > 64) { if ( u3r_met(3, key) > 64 ) {
return u3_none;
}
if ( c3y == u3qa_gth(u3r_met(3, txt), len) ) {
return u3_none; return u3_none;
} }