mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
that was a silly one
This commit is contained in:
parent
22d720e00c
commit
5883d6c221
@ -202,12 +202,12 @@ PHP_FUNCTION(mcrypt_ofb)
|
||||
convert_to_string(key);
|
||||
convert_to_string(iv);
|
||||
|
||||
bsize = get_block_size(cipher->value.lval);
|
||||
if(iv->value.str.len != bsize) {
|
||||
php3_error(E_WARNING, MCRYPT_IV_WRONG_SIZE);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
bsize = get_block_size(cipher->value.lval);
|
||||
nr = (data->value.str.len + bsize - 1) / bsize;
|
||||
nsize = nr * bsize;
|
||||
|
||||
@ -251,12 +251,12 @@ PHP_FUNCTION(mcrypt_cfb)
|
||||
convert_to_string(key);
|
||||
convert_to_string(iv);
|
||||
|
||||
bsize = get_block_size(cipher->value.lval);
|
||||
if(iv->value.str.len != bsize) {
|
||||
php3_error(E_WARNING, MCRYPT_IV_WRONG_SIZE);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
bsize = get_block_size(cipher->value.lval);
|
||||
nr = (data->value.str.len + bsize - 1) / bsize;
|
||||
nsize = nr * bsize;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user