Skip to content

Commit

Permalink
TKSS-623: Remove redundant aliases from KonaSSLProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshajiang committed Jan 4, 2024
1 parent dfa5380 commit 4a42f74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,10 @@ private static void putEntries(Provider provider) {

provider.put("KeyGenerator.TlcpKeyMaterial",
"com.tencent.kona.sun.security.provider.TlcpKeyMaterialGenerator");
provider.put("Alg.Alias.KeyGenerator.TlcpKeyMaterial", "TlcpKeyMaterial");

provider.put("KeyGenerator.TlcpSM2PremasterSecret",
"com.tencent.kona.sun.security.provider.TlcpSM2PremasterSecretGenerator");
provider.put("Alg.Alias.KeyGenerator.TlcpSM2PremasterSecret",
"TlcpSM2PremasterSecret");

provider.put("KeyGenerator.TlcpMasterSecret",
"com.tencent.kona.sun.security.provider.TlcpMasterSecretGenerator");
provider.put("Alg.Alias.KeyGenerator.TlcpMasterSecret",
"TlcpMasterSecret");

provider.put("KeyGenerator.TlcpPrf",
"com.tencent.kona.sun.security.provider.TlcpPrfGenerator");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
public final class TlcpMasterSecretGenerator extends KeyGeneratorSpi {

private final static String MSG = "TlcpMasterSecretGenerator must be "
+ "initialized using a TlcpMasterSecretParameterSpec";
+ "initialized using a TlsMasterSecretParameterSpec";

private TlsMasterSecretParameterSpec spec;

Expand All @@ -54,7 +54,7 @@ protected void engineInit(SecureRandom random) {

@Override
protected void engineInit(AlgorithmParameterSpec params,
SecureRandom random) throws InvalidAlgorithmParameterException {
SecureRandom random) throws InvalidAlgorithmParameterException {
if (!(params instanceof TlsMasterSecretParameterSpec)) {
throw new InvalidAlgorithmParameterException(MSG);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public final class TlcpSM2PremasterSecretGenerator extends KeyGeneratorSpi {
private static final String MSG = "TlcpSM2PremasterSecretGenerator must be "
+ "initialized using a TlcpSM2PremasterSecretParameterSpec";

@SuppressWarnings("deprecation")
private TlcpSM2PremasterSecretParameterSpec spec;
private SecureRandom random;

Expand Down

0 comments on commit 4a42f74

Please sign in to comment.