Searched refs:iv_len (Results 1 – 3 of 3) sorted by relevance
/PHP-7.0/ext/mcrypt/ |
H A D | mcrypt_filter.c | 154 int encrypt = 1, iv_len, key_len, keyl, result; in php_mcrypt_filter_create() local 215 iv_len = mcrypt_enc_get_iv_size(mcrypt_module); in php_mcrypt_filter_create() 228 iv = emalloc(iv_len + 1); in php_mcrypt_filter_create() 229 if (iv_len <= Z_STRLEN_P(tmpzval)) { in php_mcrypt_filter_create() 230 memcpy(iv, Z_STRVAL_P(tmpzval), iv_len); in php_mcrypt_filter_create() 233 memset(iv + Z_STRLEN_P(tmpzval), 0, iv_len - Z_STRLEN_P(tmpzval)); in php_mcrypt_filter_create()
|
H A D | mcrypt.c | 302 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \ 538 size_t key_len, iv_len; in PHP_FUNCTION() local 574 if (iv_len != iv_size) { in PHP_FUNCTION() 578 if (iv_len > iv_size) { in PHP_FUNCTION() 579 iv_len = iv_size; in PHP_FUNCTION() 582 memcpy(iv_s, iv, iv_len); in PHP_FUNCTION() 1285 if (php_mcrypt_ensure_valid_iv(td, iv, (int)iv_len) == FAILURE) { in php_mcrypt_do_crypt() 1331 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; in PHP_FUNCTION() local 1334 &key, &key_len, &data, &data_len, &mode, &mode_len, &iv, &iv_len) == FAILURE) { in PHP_FUNCTION() 1347 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; in PHP_FUNCTION() local [all …]
|
/PHP-7.0/ext/openssl/ |
H A D | openssl.c | 5351 int i, len1, len2, *eksl, nkeys, iv_len; in PHP_FUNCTION() local 5383 iv_len = EVP_CIPHER_iv_length(cipher); in PHP_FUNCTION() 5384 if (!iv && iv_len > 0) { in PHP_FUNCTION() 5447 iv_buf[iv_len] = '\0'; in PHP_FUNCTION() 5448 ZVAL_NEW_STR(iv, zend_string_init((char*)iv_buf, iv_len, 0)); in PHP_FUNCTION() 5487 size_t method_len = 0, iv_len = 0; in PHP_FUNCTION() local 5521 if (cipher_iv_len != iv_len) { in PHP_FUNCTION() 5688 size_t data_len, method_len, password_len, iv_len = 0, max_iv_len; in PHP_FUNCTION() local 5725 if (iv_len == 0 && max_iv_len > 0) { in PHP_FUNCTION() 5728 free_iv = php_openssl_validate_iv(&iv, &iv_len, max_iv_len); in PHP_FUNCTION() [all …]
|
Completed in 36 milliseconds