mid-pSquare: Leveraging the Strong Side-Channel Security of Prime-Field Masking in Software