Skip to content

Commit db6161f

Browse files
committed
minor edit of new exception messages
1 parent f848364 commit db6161f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/mldsa/MLDSAKeyFactorySpi.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ else if (key instanceof BCMLDSAPublicKey)
9393
}
9494
else
9595
{
96-
throw new InvalidKeySpecException("Unsupported key type: "
96+
throw new InvalidKeySpecException("unsupported key type: "
9797
+ key.getClass() + ".");
9898
}
9999

100-
throw new InvalidKeySpecException("Unknown key specification: "
100+
throw new InvalidKeySpecException("unknown key specification: "
101101
+ keySpec + ".");
102102
}
103103

@@ -109,7 +109,7 @@ public final Key engineTranslateKey(Key key)
109109
return key;
110110
}
111111

112-
throw new InvalidKeyException("Unsupported key type");
112+
throw new InvalidKeyException("unsupported key type");
113113
}
114114

115115
public PrivateKey engineGeneratePrivate(

prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/mlkem/MLKEMKeyFactorySpi.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ else if (key instanceof BCMLKEMPublicKey)
9090
+ key.getClass() + ".");
9191
}
9292

93-
throw new InvalidKeySpecException("Unknown key specification: "
93+
throw new InvalidKeySpecException("unknown key specification: "
9494
+ keySpec + ".");
9595
}
9696

@@ -102,7 +102,7 @@ public final Key engineTranslateKey(Key key)
102102
return key;
103103
}
104104

105-
throw new InvalidKeyException("Unsupported key type");
105+
throw new InvalidKeyException("unsupported key type");
106106
}
107107

108108
public PrivateKey engineGeneratePrivate(

0 commit comments

Comments
 (0)