Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static void NamedCreateMethods_NullInput()
// The returned types on .NET Framework can differ when the machine is in FIPS mode.
// So check hash algorithms via a more complicated manner.
[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
[InlineData("MD5", typeof(MD5))]
[InlineData("http://www.w3.org/2001/04/xmldsig-more#md5", typeof(MD5))]
[InlineData("System.Security.Cryptography.HashAlgorithm", typeof(SHA1))]
Expand Down Expand Up @@ -67,6 +68,7 @@ public static void NamedHashAlgorithmCreate(string identifier, Type baseType)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
[InlineData("System.Security.Cryptography.HMAC", typeof(HMACSHA1))]
[InlineData("System.Security.Cryptography.KeyedHashAlgorithm", typeof(HMACSHA1))]
[InlineData("System.Security.Cryptography.HMACSHA1", typeof(HMACSHA1))]
Expand Down Expand Up @@ -99,6 +101,7 @@ public static void NamedKeyedHashAlgorithmCreate(string identifier, Type actualT
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
[InlineData("AES", typeof(Aes))]
#pragma warning disable SYSLIB0022 // Rijndael types are obsolete
[InlineData("Rijndael", typeof(Rijndael))]
Expand All @@ -124,6 +127,7 @@ public static void NamedSymmetricAlgorithmCreate(string identifier, Type baseTyp
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
[InlineData("RSA", typeof(RSA))]
[InlineData("System.Security.Cryptography.RSA", typeof(RSA))]
[InlineData("ECDsa", typeof(ECDsa))]
Expand All @@ -137,6 +141,7 @@ public static void NamedAsymmetricAlgorithmCreate(string identifier, Type baseTy
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
[InlineData("DSA", typeof(DSA))]
[InlineData("System.Security.Cryptography.DSA", typeof(DSA))]
[SkipOnPlatform(PlatformSupport.MobileAppleCrypto, "DSA is not available")]
Expand All @@ -159,6 +164,7 @@ public static void NamedAsymmetricAlgorithmCreate_DSA_NotSupported(string identi
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
public static void NamedCreate_Mismatch()
{
Assert.Throws<InvalidCastException>(() => AsymmetricAlgorithm.Create("SHA1"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public async Task VerifyComputeHashAsync(int size)
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
public async Task ComputeHashAsync_SupportsCancellation()
{
using (CancellationTokenSource cancellationSource = new CancellationTokenSource(100))
Expand Down