8282884: Provide OID aliases for MD2, MD5, and OAEP

Reviewed-by: xuelei
This commit is contained in:
Weijun Wang 2022-03-09 16:47:03 +00:00
parent 6d8d156c97
commit 70318e1d17
2 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -525,8 +525,8 @@ public final class SunJCE extends Provider {
ps("AlgorithmParameters", "RC2",
"com.sun.crypto.provider.RC2Parameters");
ps("AlgorithmParameters", "OAEP",
"com.sun.crypto.provider.OAEPParameters");
psA("AlgorithmParameters", "OAEP",
"com.sun.crypto.provider.OAEPParameters", null);
psA("AlgorithmParameters", "ChaCha20-Poly1305",
"com.sun.crypto.provider.ChaCha20Poly1305Parameters", null);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -210,8 +210,10 @@ public final class SunEntries {
/*
* Digest engines
*/
add(p, "MessageDigest", "MD2", "sun.security.provider.MD2", attrs);
add(p, "MessageDigest", "MD5", "sun.security.provider.MD5", attrs);
addWithAlias(p, "MessageDigest", "MD2", "sun.security.provider.MD2",
attrs);
addWithAlias(p, "MessageDigest", "MD5", "sun.security.provider.MD5",
attrs);
addWithAlias(p, "MessageDigest", "SHA-1", "sun.security.provider.SHA",
attrs);