Lines Matching refs:iv

64 	ZEND_ARG_INFO(0, iv)
192 ZEND_ARG_INFO(0, iv)
200 ZEND_ARG_INFO(0, iv)
208 ZEND_ARG_INFO(0, iv)
216 ZEND_ARG_INFO(0, iv)
224 ZEND_ARG_INFO(0, iv)
232 ZEND_ARG_INFO(0, iv)
336 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
565 char *key, *iv; in PHP_FUNCTION() local
573 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_l… in PHP_FUNCTION()
606 memcpy(iv_s, iv, iv_len); in PHP_FUNCTION()
1244 static int php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size TSRMLS_DC) /* {{{ */ in php_mcrypt_ensure_valid_iv() argument
1253 if (!iv) { in php_mcrypt_ensure_valid_iv()
1273 …*key, int key_len, const char *data, int data_len, char *mode, const char *iv, int iv_len, int den… in php_mcrypt_do_crypt() argument
1294 if (php_mcrypt_ensure_valid_iv(td, iv, iv_len TSRMLS_CC) == FAILURE) { in php_mcrypt_do_crypt()
1312 if (mcrypt_generic_init(td, (void *) key, key_len, (void *) iv) < 0) { in php_mcrypt_do_crypt()
1337 char *cipher, *key, *data, *mode, *iv = NULL; in PHP_FUNCTION() local
1341 &key, &key_len, &data, &data_len, &mode, &mode_len, &iv, &iv_len) == FAILURE) { in PHP_FUNCTION()
1345 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, mode, iv, iv_len, MCRYPT_ENCRYPT, return… in PHP_FUNCTION()
1353 char *cipher, *key, *data, *mode, *iv = NULL; in PHP_FUNCTION() local
1357 &key, &key_len, &data, &data_len, &mode, &mode_len, &iv, &iv_len) == FAILURE) { in PHP_FUNCTION()
1361 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, mode, iv, iv_len, MCRYPT_DECRYPT, return… in PHP_FUNCTION()
1370 char *cipher, *key, *data, *iv = NULL; in PHP_FUNCTION() local
1377 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, "ecb", iv, iv_len, Z_LVAL_PP(mode), retu… in PHP_FUNCTION()
1386 char *cipher, *key, *data, *iv = NULL; in PHP_FUNCTION() local
1393 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, "cbc", iv, iv_len, Z_LVAL_PP(mode), retu… in PHP_FUNCTION()
1402 char *cipher, *key, *data, *iv = NULL; in PHP_FUNCTION() local
1409 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, "cfb", iv, iv_len, Z_LVAL_PP(mode), retu… in PHP_FUNCTION()
1418 char *cipher, *key, *data, *iv = NULL; in PHP_FUNCTION() local
1425 …php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, "ofb", iv, iv_len, Z_LVAL_PP(mode), retu… in PHP_FUNCTION()
1433 char *iv; in PHP_FUNCTION() local
1447 iv = ecalloc(size + 1, 1); in PHP_FUNCTION()
1452 BYTE *iv_b = (BYTE *) iv; in PHP_FUNCTION()
1454 efree(iv); in PHP_FUNCTION()
1466 efree(iv); in PHP_FUNCTION()
1473 n = read(*fd, iv + read_bytes, size - read_bytes); in PHP_FUNCTION()
1482 efree(iv); in PHP_FUNCTION()
1490 iv[--size] = (char) (255.0 * php_rand(TSRMLS_C) / RAND_MAX); in PHP_FUNCTION()
1493 RETURN_STRINGL(iv, n, 0); in PHP_FUNCTION()