Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/AesContractTests.cs')
-rw-r--r--src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/AesContractTests.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/AesContractTests.cs b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/AesContractTests.cs
index f2a63a2cbb2..dc8940d6b38 100644
--- a/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/AesContractTests.cs
+++ b/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/AesContractTests.cs
@@ -55,7 +55,10 @@ namespace System.Security.Cryptography.Encryption.Aes.Tests
Assert.Equal(128, keySizeLimits.MinSize);
Assert.Equal(256, keySizeLimits.MaxSize);
- Assert.Equal(64, keySizeLimits.SkipSize);
+
+ // Browser's SubtleCrypto doesn't support AES-192
+ int expectedKeySkipSize = PlatformDetection.IsBrowser ? 128 : 64;
+ Assert.Equal(expectedKeySkipSize, keySizeLimits.SkipSize);
}
}
@@ -214,6 +217,7 @@ namespace System.Security.Cryptography.Encryption.Aes.Tests
}
[Fact]
+ [SkipOnPlatform(TestPlatforms.Browser, "AES-192 is not supported on Browser")]
public static void VerifyKeyGeneration_192()
{
using (Aes aes = AesFactory.Create())