24 lines
733 B
C#
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;
|
|
}
|