Chiral symmetry breaking in a uniform external magnetic field