using GostCryptography.Config;
using System.Security;
using System.Security.Cryptography;
namespace GostCryptography.Base
{
///
/// Базовый класс для всех алгоритмов симметричного шифрования ГОСТ
///
public abstract class GostSymmetricAlgorithm : SymmetricAlgorithm, IGostAlgorithm
{
///
/// Конструктор
///
///
/// По умолчанию использует криптографический провайдер, установленный в
///
[SecuritySafeCritical]
protected GostSymmetricAlgorithm() : this(GostCryptoConfig.ProviderType)
{
}
///
/// Конструктор
///
/// Тип криптографического провайдера
[SecuritySafeCritical]
protected GostSymmetricAlgorithm(ProviderType providerType)
{
ProviderType = providerType;
}
///
public ProviderType ProviderType { get; }
///
public abstract string AlgorithmName { get; }
}
}