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

/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt_filter.c154 int encrypt = 1, iv_len, key_len, keyl, result; local
215 iv_len = mcrypt_enc_get_iv_size(mcrypt_module);
228 iv = emalloc(iv_len + 1);
229 if (iv_len <= Z_STRLEN_P(tmpzval)) {
230 memcpy(iv, Z_STRVAL_P(tmpzval), iv_len);
233 memset(iv + Z_STRLEN_P(tmpzval), 0, iv_len - Z_STRLEN_P(tmpzval));
H A Dmcrypt.c334 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
546 size_t key_len, iv_len; local
553 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
580 if (iv_len != iv_size) {
581 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Iv size incorrect; supplied length: %d, needed: %d", iv_len, iv_size);
1241 static void php_mcrypt_do_crypt(char* cipher, const char *key, int key_len, const char *data, int data_len, char *mode, const char *iv, size_t iv_len, size_t dencrypt, zval* return_value TSRMLS_DC) /* {{{ */ argument
1262 if (php_mcrypt_ensure_valid_iv(td, iv, iv_len TSRMLS_CC) == FAILURE) {
1307 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1310 &key, &key_len, &data, &data_len, &mode, &mode_len, &iv, &iv_len) == FAILURE) {
1314 php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, mode, iv, iv_len, MCRYPT_ENCRYP
1323 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1340 size_t cipher_len, key_len, data_len, iv_len = 0; local
1356 size_t cipher_len, key_len, data_len, iv_len = 0; local
1372 size_t cipher_len, key_len, data_len, iv_len = 0; local
1388 size_t cipher_len, key_len, data_len, iv_len = 0; local
[all...]
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c5054 size_t data_len, method_len, password_len, iv_len = 0, max_iv_len; local
5062 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) {
5081 if (iv_len <= 0 && max_iv_len > 0) {
5084 free_iv = php_openssl_validate_iv(&iv, (int *)&iv_len, max_iv_len TSRMLS_CC);
5134 size_t data_len, method_len, password_len, iv_len = 0; local
5143 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) {
5177 free_iv = php_openssl_validate_iv(&iv, (int *)&iv_len, EVP_CIPHER_iv_length(cipher_type) TSRMLS_CC);

Completed in 15 milliseconds