Skip to content

Commit

Permalink
Asn1DerDecoder: fix use of deprecated name.
Browse files Browse the repository at this point in the history
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
  • Loading branch information
boaks committed Apr 13, 2024
1 parent 2a92195 commit 26042c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ public static Keys readPrivateKey(final byte[] data) throws GeneralSecurityExcep
Keys keys = null;
String algorithm = readPrivateKeyAlgorithm(data);
if (algorithm != null) {
if (algorithm == JceNames.ED25519v2 || algorithm == ED448v2) {
if (algorithm == JceNames.ED25519v2 || algorithm == JceNames.ED448v2) {
keys = readEdDsaPrivateKeyV2(data);
} else if (algorithm == JceNames.ECv2) {
keys = readEcPrivateKeyV2(data);
Expand Down

0 comments on commit 26042c6

Please sign in to comment.