Laminar and turbulent dynamos in chiral magnetohydrodynamics. I. Theory.