Adapt the FIPS provider to use the new core error functions