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
31 changes: 0 additions & 31 deletions src/LibOQS.NET.Tests/KemTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ public class KemTests
[InlineData(KemAlgorithm.MlKem1024)]
public void KemEncapsDecaps_ShouldSucceed(KemAlgorithm algorithm)
{
// Skip test if algorithm is not enabled
if (!algorithm.IsEnabled())
{
return;
}

using var kem = new KemInstance(algorithm);

// Generate keypair
Expand All @@ -42,11 +36,6 @@ public void KemEncapsDecaps_ShouldSucceed(KemAlgorithm algorithm)
[Fact]
public void KemEncapsulate_WithWrongKeySize_ShouldThrow()
{
if (!KemAlgorithm.MlKem512.IsEnabled())
{
return;
}

using var kem = new KemInstance(KemAlgorithm.MlKem512);
var wrongSizeKey = new byte[100]; // Wrong size

Expand All @@ -56,11 +45,6 @@ public void KemEncapsulate_WithWrongKeySize_ShouldThrow()
[Fact]
public void KemDecapsulate_WithWrongKeySize_ShouldThrow()
{
if (!KemAlgorithm.MlKem512.IsEnabled())
{
return;
}

using var kem = new KemInstance(KemAlgorithm.MlKem512);
var (publicKey, _) = kem.GenerateKeypair();
var (ciphertext, _) = kem.Encapsulate(publicKey);
Expand All @@ -73,11 +57,6 @@ public void KemDecapsulate_WithWrongKeySize_ShouldThrow()
[Fact]
public void KemDecapsulate_WithWrongCiphertextSize_ShouldThrow()
{
if (!KemAlgorithm.MlKem512.IsEnabled())
{
return;
}

using var kem = new KemInstance(KemAlgorithm.MlKem512);
var (_, secretKey) = kem.GenerateKeypair();

Expand All @@ -89,11 +68,6 @@ public void KemDecapsulate_WithWrongCiphertextSize_ShouldThrow()
[Fact]
public void KemDispose_ShouldAllowMultipleCalls()
{
if (!KemAlgorithm.MlKem512.IsEnabled())
{
return;
}

var kem = new KemInstance(KemAlgorithm.MlKem512);

kem.Dispose();
Expand All @@ -103,11 +77,6 @@ public void KemDispose_ShouldAllowMultipleCalls()
[Fact]
public void KemUseAfterDispose_ShouldThrow()
{
if (!KemAlgorithm.MlKem512.IsEnabled())
{
return;
}

var kem = new KemInstance(KemAlgorithm.MlKem512);
kem.Dispose();

Expand Down
21 changes: 0 additions & 21 deletions src/LibOQS.NET.Tests/LibOqsFixture.cs

This file was deleted.

Loading
Loading