Searched defs:iv (Results 1 - 3 of 3) sorted by relevance

/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt_filter.c158 char *iv = NULL, *key = NULL; local
221 if (!(tmpzval = zend_hash_str_find(HASH_OF(filterparams), ZEND_STRL("iv"))) ||
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_P(tmpzval), iv_len);
232 memcpy(iv, Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval));
233 memset(iv + Z_STRLEN_P(tmpzval), 0, iv_len - Z_STRLEN_P(tmpzval));
236 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv);
237 efree(iv);
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");
541 /* {{{ proto int mcrypt_generic_init(resource td, string key, string iv)
545 char *key, *iv; local
1216 php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size TSRMLS_DC) argument
1241 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
1306 char *cipher, *key, *data, *mode, *iv = NULL; local
1322 char *cipher, *key, *data, *mode, *iv = NULL; local
1339 char *cipher, *key, *data, *iv = NULL; local
1355 char *cipher, *key, *data, *iv = NULL; local
1371 char *cipher, *key, *data, *iv = NULL; local
1387 char *cipher, *key, *data, *iv = NULL; local
1402 char *iv; local
[all...]
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c384 ZEND_ARG_INFO(0, iv)
392 ZEND_ARG_INFO(0, iv)
4774 iv = ivlen ? emalloc(ivlen + 1) : NULL;
4807 iv[ivlen] = '\0';
4808 ZVAL_STRINGL(*ivec, iv, ivlen);
4809 efree(iv);
5023 /* {{{ proto string openssl_encrypt(string data, string method, string password [, long options=0 [, string $iv='']])
5028 char *data, *method, *password, *iv = ""; local
5037 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) {
5057 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Using an empty Initialization Vector (iv) i
5108 char *data, *method, *password, *iv = ""; local
[all...]

Completed in 12 milliseconds