Searched refs:iv (Results 1 - 4 of 4) 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, 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)
302 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
391 MCRYPT_ENTRY2_2_4(ARCFOUR_IV, "arcfour-iv");
533 /* {{{ proto int mcrypt_generic_init(resource td, string key, string iv)
537 char *key, *iv; local
545 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
580 memcpy(iv_s, iv, iv_len);
1217 static int php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, in argument
1242 php_mcrypt_do_crypt(char* cipher, const char *key, size_t key_len, const char *data, size_t data_len, char *mode, const char *iv, size_t iv_len, size_t dencrypt, zval* return_value) argument
1307 char *cipher, *key, *data, *mode, *iv = NULL; local
1323 char *cipher, *key, *data, *mode, *iv = NULL; local
1339 char *iv; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dvar_unserializer.re275 iv = [+-]? [0-9]+;
277 nvexp = (iv | nv) [eE] [+-]? iv;
547 "R:" iv ";" {
569 "r:" iv ";" {
604 "i:" iv ";" {
646 "d:" (iv | nv | nvexp) ";" {
712 /* use iv() not uiv() in order to check data range */
732 "o:" iv ":" ["] {
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c389 ZEND_ARG_INFO(0, iv)
397 ZEND_ARG_INFO(0, iv)
4953 iv = ivlen ? emalloc(ivlen + 1) : NULL;
4986 iv[ivlen] = '\0';
4987 ZVAL_STRINGL(*ivec, iv, ivlen);
4988 efree(iv);
5207 /* {{{ proto string openssl_encrypt(string data, string method, string password [, long options=0 [, string $iv='']])
5212 char *data, *method, *password, *iv = ""; local
5221 if (zend_parse_parameters(ZEND_NUM_ARGS(), "sss|ls", &data, &data_len, &method, &method_len, &password, &password_len, &options, &iv, &iv_len) == FAILURE) {
5243 php_error_docref(NULL, E_WARNING, "Using an empty Initialization Vector (iv) i
5295 char *data, *method, *password, *iv = ""; local
[all...]

Completed in 12 milliseconds