mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8204196: integer cleanup
Reviewed-by: xuelei
This commit is contained in:
parent
f53e04ead9
commit
4e46cc1392
7 changed files with 18 additions and 12 deletions
|
@ -1039,7 +1039,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
|
|||
* @return the default alg, might be null if unsupported
|
||||
*/
|
||||
public static String getDefaultSigAlgForKey(PrivateKey k) {
|
||||
switch (k.getAlgorithm().toUpperCase(Locale.ROOT)) {
|
||||
switch (k.getAlgorithm().toUpperCase(Locale.ENGLISH)) {
|
||||
case "EC":
|
||||
return ecStrength(KeyUtil.getKeySize(k))
|
||||
+ "withECDSA";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue