Is hash legal?

Yes, hash is legal. But only if the maximum THC content is below 0.2% or 0.3% (in Austria).