Files
git.stella-ops.org/src/__Libraries/StellaOps.Configuration/StellaOpsCryptoOptions.cs
2026-02-01 21:37:40 +02:00

24 lines
733 B
C#

using StellaOps.Cryptography;
using StellaOps.Cryptography.DependencyInjection;
#if STELLAOPS_CRYPTO_PRO
using StellaOps.Cryptography.Plugin.CryptoPro;
#endif
using StellaOps.Cryptography.Plugin.Pkcs11Gost;
namespace StellaOps.Configuration;
/// <summary>
/// Shared crypto configuration (registry ordering + provider settings) consumed by hosts and tooling.
/// </summary>
public sealed class StellaOpsCryptoOptions
{
public CryptoProviderRegistryOptions Registry { get; } = new();
public Pkcs11GostProviderOptions Pkcs11 { get; } = new();
#if STELLAOPS_CRYPTO_PRO
public CryptoProGostProviderOptions CryptoPro { get; } = new();
#endif
public string DefaultHashAlgorithm { get; set; } = HashAlgorithms.Sha256;
}