PROV: Refactor the RSA DER support