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 @@ -644,7 +644,7 @@ public void RsaDecryptAfterExport()
Assert.Equal(TestData.HelloBytes, output);
}

[Fact]
[ConditionalFact(typeof(ImportExport), nameof(ImportExport.Supports16384))]
public void LargeKeyCryptRoundtrip()
{
byte[] output;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static void PaddedExport()
RSATestHelpers.AssertKeyEquals(diminishedDPParameters, exported);
}

[Fact]
[ConditionalFact(typeof(ImportExport), nameof(ImportExport.Supports16384))]
public static void LargeKeyImportExport()
{
RSAParameters imported = TestData.RSA16384Params;
Expand Down Expand Up @@ -367,6 +367,13 @@ internal static RSAParameters MakePublic(in RSAParameters rsaParams)

private static bool TestRsa16384()
{
if (PlatformDetection.IsAndroid)
{
// We cannot detect this on Android at the moment. Even attempting to generate or import a 16K RSA key
// may leave the error queue in the incorrect state. See https://github.com/google/conscrypt/issues/1507
return false;
}

try
{
using (RSA rsa = RSAFactory.Create())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ public void VerifyExpectedSignature_PssSha256_RSA2048()
modulus2048Signature);
}

[Fact]
[ConditionalFact(typeof(ImportExport), nameof(ImportExport.Supports16384))]
public void VerifyExpectedSignature_PssSha256_RSA16384()
{
byte[] modulus2048Signature = (
Expand Down Expand Up @@ -1098,7 +1098,7 @@ public void VerifyExpectedSignature_PssSha256_RSA16384()
modulus2048Signature);
}

[Fact]
[ConditionalFact(typeof(ImportExport), nameof(ImportExport.Supports16384))]
public void VerifyExpectedSignature_PssSha384()
{
byte[] bigModulusSignature = (
Expand Down
Loading