private static String convertToStandardName ( String internalName ) { if ( internalName . equals ( "SHA" ) ) { return "SHA-1" ; } else if ( internalName . equals ( "SHA224" ) ) { return "SHA-224" ; } else if ( internalName . equals ( "SHA256" ) ) { return "SHA-256" ; } else if ( internalName . equals ( "SHA384" ) ) { return "SHA-384" ; } else if ( internalName . equals ( "SHA512" ) ) { return "SHA-512" ; } else { return internalName ; } }
Copied from com . sun . crypto . provider . OAEPParameters .