Another attempt at a working, stable FIPS routine.