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