|Applies To||RSA BSAFE Crypto-J 3.5.3|
|Issue||Crypto-J: how to get the transformation name from an algorithm OID|
Given an OID (i.e. 1.2.840.1135126.96.36.199), how could one get back the name of the algorithm (i.e. "SHA1/RSA/PKCS1Block01Pad")?
First of all, the OID would need to be formatted in a byte array, then just use the following call to get the mapping:
String transformationName = AlgorithmID.berDecodeAlgID(OID, 0, OIDList.UNKNOWN_OID, null);
|Legacy Article ID||a34801|