Lines Matching refs:iv

64 	ZEND_ARG_INFO(0, iv)
192 ZEND_ARG_INFO(0, iv)
200 ZEND_ARG_INFO(0, iv)
302 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
537 char *key, *iv; in PHP_FUNCTION() local
545 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAI… in PHP_FUNCTION()
582 memcpy(iv_s, iv, iv_len); in PHP_FUNCTION()
1235 static int php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size) /* {{{ */ in php_mcrypt_ensure_valid_iv() argument
1244 if (!iv) { in php_mcrypt_ensure_valid_iv()
1264 …size_t key_len, const char *data, size_t data_len, char *mode, const char *iv, size_t iv_len, size… in php_mcrypt_do_crypt() argument
1285 if (php_mcrypt_ensure_valid_iv(td, iv, (int)iv_len) == FAILURE) { in php_mcrypt_do_crypt()
1303 if (mcrypt_generic_init(td, (void *) key, (int)key_len, (void *) iv) < 0) { in php_mcrypt_do_crypt()
1330 char *cipher, *key, *data, *mode, *iv = NULL; in PHP_FUNCTION() local
1334 &key, &key_len, &data, &data_len, &mode, &mode_len, &iv, &iv_len) == FAILURE) { in PHP_FUNCTION()
1338 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, mode, iv, iv_len, MCRYPT_ENCRYPT, return… in PHP_FUNCTION()
1346 char *cipher, *key, *data, *mode, *iv = NULL; in PHP_FUNCTION() local
1350 &key, &key_len, &data, &data_len, &mode, &mode_len, &iv, &iv_len) == FAILURE) { in PHP_FUNCTION()
1354 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, mode, iv, iv_len, MCRYPT_DECRYPT, return… in PHP_FUNCTION()
1362 char *iv; in PHP_FUNCTION() local
1376 iv = ecalloc(size + 1, 1); in PHP_FUNCTION()
1381 BYTE *iv_b = (BYTE *) iv; in PHP_FUNCTION()
1383 efree(iv); in PHP_FUNCTION()
1395 efree(iv); in PHP_FUNCTION()
1402 n = read(*fd, iv + read_bytes, size - read_bytes); in PHP_FUNCTION()
1411 efree(iv); in PHP_FUNCTION()
1419 iv[--size] = (char) (255.0 * php_rand() / RAND_MAX); in PHP_FUNCTION()
1422 RETVAL_STRINGL(iv, n); in PHP_FUNCTION()
1423 efree(iv); in PHP_FUNCTION()