46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using FluentAssertions;
|
|
using StellaOps.Cryptography;
|
|
using Xunit;
|
|
namespace StellaOps.Cryptography.Tests;
|
|
public sealed partial class EidasCapabilityDetectionTests
|
|
{
|
|
[Fact]
|
|
public void AlgorithmSummary_DocumentsSupportedAlgorithms()
|
|
{
|
|
var provider = CreateProvider();
|
|
|
|
var supportedAlgorithms = new[]
|
|
{
|
|
"ECDSA-P256",
|
|
"ECDSA-P384",
|
|
"ECDSA-P521",
|
|
"RSA-PSS-2048",
|
|
"RSA-PSS-4096",
|
|
"EdDSA-Ed25519",
|
|
"EdDSA-Ed448"
|
|
};
|
|
|
|
foreach (var algo in supportedAlgorithms)
|
|
{
|
|
provider.Supports(CryptoCapability.Signing, algo).Should().BeTrue();
|
|
provider.Supports(CryptoCapability.Verification, algo).Should().BeTrue();
|
|
}
|
|
|
|
_output.WriteLine("=== eIDAS Provider Algorithm Summary ===");
|
|
_output.WriteLine("Supported for Signing & Verification:");
|
|
foreach (var algo in supportedAlgorithms)
|
|
{
|
|
_output.WriteLine($" - {algo}");
|
|
}
|
|
_output.WriteLine("Unsupported Capabilities:");
|
|
_output.WriteLine(" - PasswordHashing");
|
|
_output.WriteLine(" - ContentHashing");
|
|
_output.WriteLine(" - SymmetricEncryption");
|
|
_output.WriteLine(" - KeyDerivation");
|
|
_output.WriteLine("Signature Levels:");
|
|
_output.WriteLine(" - QES (Qualified Electronic Signature)");
|
|
_output.WriteLine(" - AES (Advanced Electronic Signature)");
|
|
_output.WriteLine(" - AdES (Standard Electronic Signature)");
|
|
}
|
|
}
|