We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8fe4d7 commit 1fc6958Copy full SHA for 1fc6958
core/src/main/java/org/bouncycastle/pqc/crypto/util/PrivateKeyFactory.java
@@ -322,6 +322,16 @@ else if (algOID.equals(NISTObjectIdentifiers.id_ml_dsa_44)
322
null);
323
}
324
325
+ else if (keyObj instanceof DEROctetString)
326
+ {
327
+ byte[] data = ASN1OctetString.getInstance(keyObj).getOctets();
328
+ if (keyInfo.getPublicKeyData() != null)
329
330
+ MLDSAPublicKeyParameters pubParams = PublicKeyFactory.MLDSAConverter.getPublicKeyParams(spParams, keyInfo.getPublicKeyData());
331
+ return new MLDSAPrivateKeyParameters(spParams, data, pubParams);
332
+ }
333
+ return new MLDSAPrivateKeyParameters(spParams, data, null);
334
335
else
336
{
337
throw new IOException("not supported");
0 commit comments