RFR: 8279801: EC KeyFactory and KeyPairGenerator do not have aliases for OID format

Valerie Peng valeriep at openjdk.java.net
Wed Jan 12 21:25:25 UTC 2022


On Wed, 12 Jan 2022 21:17:41 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> Add OID aliases for the 2 service. This makes sure KeyFactory can be created and read an encoded key without knowing what the OID in the encoding is for.
>
> src/jdk.crypto.ec/share/classes/sun/security/ec/SunEC.java line 322:
> 
>> 320:          */
>> 321:         putService(new ProviderServiceA(this, "KeyPairGenerator",
>> 322:             "EC", "sun.security.ec.ECKeyPairGenerator", ATTRS));
> 
> How about the EllipticCurve alias? Are we dropping it?

Hmm, I searched various security docs such as SunEC provider and standard names, there is no mentioning of EllipticCurve alias. So probably ok to drop it.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7036



More information about the security-dev mailing list