It *is* both, because evil thrives best in an environment rich in ignorance.
"Ignorance is the root and stem of all evil." -- Plato
But evil is not particularly self-aware. Those who do evil generally think themselves good.
"Never attribute to malice that which is adequately explained by stupidity." -- Hanlon's Razor