Fixes for strict mode and JOSE

With these fixes, runs in strict mode
Also, change default PSS padding to match JOSE