diff --git a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDiffieHellman/ECDiffieHellmanTests.ImportExport.cs b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDiffieHellman/ECDiffieHellmanTests.ImportExport.cs index 78c653e27afe2f..647976536fd735 100644 --- a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDiffieHellman/ECDiffieHellmanTests.ImportExport.cs +++ b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDiffieHellman/ECDiffieHellmanTests.ImportExport.cs @@ -312,6 +312,11 @@ public void ImportParameters_MismatchedKeyPair_Throws(bool explicitCurve) SkipTestException.ThrowUnless(ECDiffieHellmanFactory.ExplicitCurvesSupported); } + if (PlatformDetection.IsWindows) + { + SkipTestException.ThrowUnless(PlatformDetection.IsWindows10Version22000OrGreater); + } + ECParameters parameters = explicitCurve ? EccTestData.GetNistP256ReferenceKeyExplicit() : EccTestData.GetNistP256ReferenceKey(); diff --git a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaImportExport.cs b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaImportExport.cs index fe4a7d2927e897..9e3a1d3eaf52d1 100644 --- a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaImportExport.cs +++ b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/ECDsa/ECDsaImportExport.cs @@ -301,6 +301,11 @@ public void ImportParameters_MismatchedKeyPair_Throws(bool explicitCurve) SkipTestException.ThrowUnless(ECExplicitCurvesSupported); } + if (PlatformDetection.IsWindows) + { + SkipTestException.ThrowUnless(PlatformDetection.IsWindows10Version22000OrGreater); + } + ECParameters parameters = explicitCurve ? EccTestData.GetNistP256ReferenceKeyExplicit() : EccTestData.GetNistP256ReferenceKey();