Searched refs:iv (Results 1 - 5 of 5) sorted by relevance

/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt_filter.c158 char *iv = NULL, *key = NULL; local
221 if (zend_hash_find(HASH_OF(filterparams), "iv", sizeof("iv"), (void**) &tmpzval) == FAILURE ||
223 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Filter parameter[iv] not provided or not of type: string");
228 iv = emalloc(iv_len + 1);
230 memcpy(iv, Z_STRVAL_PP(tmpzval), iv_len);
232 memcpy(iv, Z_STRVAL_PP(tmpzval), Z_STRLEN_PP(tmpzval));
233 memset(iv + Z_STRLEN_PP(tmpzval), 0, iv_len - Z_STRLEN_PP(tmpzval));
236 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv);
237 efree(iv);
[all...]
H A Dmcrypt.c64 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)
334 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
399 MCRYPT_ENTRY2_2_4(ARCFOUR_IV, "arcfour-iv");
540 /* {{{ proto int mcrypt_generic_init(resource td, string key, string iv)
544 char *key, *iv; local
1211 php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size TSRMLS_DC) argument
1236 php_mcrypt_do_crypt(char* cipher, const char *key, int key_len, const char *data, int data_len, char *mode, const char *iv, int iv_len, int dencrypt, zval* return_value TSRMLS_DC) argument
1299 char *cipher, *key, *data, *mode, *iv = NULL; local
1315 char *cipher, *key, *data, *mode, *iv = NULL; local
1332 char *cipher, *key, *data, *iv = NULL; local
1348 char *cipher, *key, *data, *iv = NULL; local
1364 char *cipher, *key, *data, *iv = NULL; local
1380 char *cipher, *key, *data, *iv = NULL; local
1395 char *iv; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_API.c850 int iv = 0; local
858 (*varargs)[iv++] = p++;
862 num_args = num_args + 1 - iv;
863 i += iv;
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c384 ZEND_ARG_INFO(0, iv)
392 ZEND_ARG_INFO(0, iv)
4875 iv = ivlen ? emalloc(ivlen + 1) : NULL;
4907 iv[ivlen] = '\0';
4908 ZVAL_STRINGL(*ivec, erealloc(iv, ivlen + 1), ivlen, 0);
5119 /* {{{ proto string openssl_encrypt(string data, string method, string password [, long options=0 [, string $iv='']])
5124 char *data, *method, *password, *iv = ""; local
5132 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|ls", &data, &data_len, &method, &method_len, &password, &password_len, &options, &iv, &iv_len) == FAILURE) {
5152 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Using an empty Initialization Vector (iv) is potentially insecure and not recommended");
5154 free_iv = php_openssl_validate_iv(&iv,
5203 char *data, *method, *password, *iv = ""; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dvar_unserializer.re229 iv = [+-]? [0-9]+;
231 nvexp = (iv | nv) [eE] [+-]? iv;
477 "R:" iv ";" {
498 "r:" iv ";" {
535 "i:" iv ";" {
577 "d:" (iv | nv | nvexp) ";" {
646 /* use iv() not uiv() in order to check data range */
664 "o:" iv ":" ["] {

Completed in 21 milliseconds