Searched refs: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_PP(tmpzval)) {
230 memcpy(iv, Z_STRVAL_PP(tmpzval), iv_len);
233 memset(iv + Z_STRLEN_PP(tmpzval), 0, iv_len - Z_STRLEN_PP(tmpzval));
H A Dmcrypt.c334 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
545 int key_len, iv_len; local
552 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
579 if (iv_len != iv_size) {
580 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Iv size incorrect; supplied length: %d, needed: %d", iv_len, iv_size);
1236 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, int iv_len, int dencrypt, zval* return_value TSRMLS_DC) /* {{{ */ argument
1257 if (php_mcrypt_ensure_valid_iv(td, iv, iv_len TSRMLS_CC) == FAILURE) {
1300 int cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1303 &key, &key_len, &data, &data_len, &mode, &mode_len, &iv, &iv_len) == FAILURE) {
1307 php_mcrypt_do_crypt(cipher, key, key_len, data, data_len, mode, iv, iv_len, MCRYPT_ENCRYP
1316 int cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1333 int cipher_len, key_len, data_len, iv_len = 0; local
1349 int cipher_len, key_len, data_len, iv_len = 0; local
1365 int cipher_len, key_len, data_len, iv_len = 0; local
1381 int cipher_len, key_len, data_len, iv_len = 0; local
[all...]
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c5137 int data_len, method_len, password_len, iv_len = 0, max_iv_len; local
5144 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) {
5163 if (iv_len <= 0 && max_iv_len > 0) {
5166 free_iv = php_openssl_validate_iv(&iv, &iv_len, max_iv_len TSRMLS_CC);
5216 int data_len, method_len, password_len, iv_len = 0; local
5225 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) {
5259 free_iv = php_openssl_validate_iv(&iv, &iv_len, EVP_CIPHER_iv_length(cipher_type) TSRMLS_CC);

Completed in 13 milliseconds