Lines Matching refs:piv_len
7027 static int php_openssl_validate_iv(const char **piv, size_t *piv_len, size_t iv_required_len, in php_openssl_validate_iv() argument
7033 if (EVP_CIPHER_CTX_ctrl(cipher_ctx, mode->aead_ivlen_flag, *piv_len, NULL) != 1) { in php_openssl_validate_iv()
7041 if (*piv_len == iv_required_len) { in php_openssl_validate_iv()
7047 if (*piv_len == 0) { in php_openssl_validate_iv()
7049 *piv_len = iv_required_len; in php_openssl_validate_iv()
7056 if (*piv_len < iv_required_len) { in php_openssl_validate_iv()
7059 *piv_len, iv_required_len); in php_openssl_validate_iv()
7060 memcpy(iv_new, *piv, *piv_len); in php_openssl_validate_iv()
7061 *piv_len = iv_required_len; in php_openssl_validate_iv()
7069 *piv_len, iv_required_len); in php_openssl_validate_iv()
7071 *piv_len = iv_required_len; in php_openssl_validate_iv()
7082 const char **piv, size_t *piv_len, zend_bool *free_iv, in php_openssl_cipher_init() argument
7092 if (enc && *piv_len == 0 && max_iv_len > 0 && !mode->is_aead) { in php_openssl_cipher_init()
7101 if (php_openssl_validate_iv(piv, piv_len, max_iv_len, free_iv, cipher_ctx, mode) == FAILURE) { in php_openssl_cipher_init()