mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 13:04:17 +03:00
vere/aes_siv: check claimed length
This commit is contained in:
parent
d44b9b8431
commit
e4d2cd3fa2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user