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

/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt.c549 int max_key_size, key_size, iv_size; local
560 iv_size = mcrypt_enc_get_iv_size(pm->td);
569 iv_s = emalloc(iv_size + 1);
570 memset(iv_s, 0, iv_size + 1);
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);
583 memcpy(iv_s, iv, iv_size);
1216 static int php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size TSRMLS_DC) /* {{{ */
1228 if (iv_size != expected_iv_size) {
1231 "for this encryption mode", iv_size, expected_iv_siz
[all...]

Completed in 5 milliseconds