We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a663e85 commit 0f3e412Copy full SHA for 0f3e412
crypto/src/security/PublicKeyFactory.cs
@@ -314,17 +314,6 @@ internal static MLDsaPublicKeyParameters GetMLDsaPublicKey(MLDsaParameters mlDsa
314
if (oct.GetOctetsLength() == publicKeyLength)
315
return MLDsaPublicKeyParameters.FromEncoding(mlDsaParameters, encoding: oct.GetOctets());
316
}
317
- else if (obj is Asn1Sequence seq)
318
- {
319
- var rho = Asn1OctetString.GetInstance(seq[0]);
320
- var t1 = Asn1OctetString.GetInstance(seq[1]);
321
-
322
- if (rho.GetOctetsLength() == DilithiumEngine.SeedBytes &&
323
- t1.GetOctetsLength() == publicKeyLength - DilithiumEngine.SeedBytes)
324
325
- return new MLDsaPublicKeyParameters(mlDsaParameters, rho.GetOctets(), t1.GetOctets());
326
- }
327
328
329
catch (Exception)
330
{
0 commit comments