diff --git a/src/libraries/Common/src/System/Security/Cryptography/MLDsaImplementation.CreateCng.cs b/src/libraries/Common/src/System/Security/Cryptography/MLDsaImplementation.CreateCng.cs index af103e88ff3b86..a36149f56c690e 100644 --- a/src/libraries/Common/src/System/Security/Cryptography/MLDsaImplementation.CreateCng.cs +++ b/src/libraries/Common/src/System/Security/Cryptography/MLDsaImplementation.CreateCng.cs @@ -18,8 +18,8 @@ internal CngKey CreateEphemeralCng() Interop.BCrypt.KeyBlobType.BCRYPT_PQDSA_PUBLIC_BLOB; CngKeyBlobFormat cngBlobFormat = - _hasPrivateKey ? CngKeyBlobFormat.PQDsaPrivateBlob : _hasSeed ? CngKeyBlobFormat.PQDsaPrivateSeedBlob : + _hasPrivateKey ? CngKeyBlobFormat.PQDsaPrivateBlob : CngKeyBlobFormat.PQDsaPublicBlob; CngKey key = Interop.BCrypt.BCryptExportKey(