Lines Matching refs:piv_len
7687 static int php_openssl_validate_iv(const char **piv, size_t *piv_len, size_t iv_required_len, argument
7693 if (EVP_CIPHER_CTX_ctrl(cipher_ctx, mode->aead_ivlen_flag, *piv_len, NULL) != 1) {
7701 if (*piv_len == iv_required_len) {
7707 if (*piv_len == 0) {
7709 *piv_len = iv_required_len;
7716 if (*piv_len < iv_required_len) {
7719 *piv_len, iv_required_len);
7720 memcpy(iv_new, *piv, *piv_len);
7721 *piv_len = iv_required_len;
7729 *piv_len, iv_required_len);
7731 *piv_len = iv_required_len;
7742 const char **piv, size_t *piv_len, bool *free_iv, argument
7752 if (enc && *piv_len == 0 && max_iv_len > 0 && !mode->is_aead) {
7761 if (php_openssl_validate_iv(piv, piv_len, max_iv_len, free_iv, cipher_ctx, mode) == FAILURE) {