using GostCryptography.Asn1.Gost.Gost_R3410_2012_512;
using GostCryptography.Base;
using System.Security.Cryptography;

namespace GostCryptography.Gost_R3410
{
    /// <summary>
    /// Реализация шифрования общего секретного ключа по ГОСТ Р 34.10-2012/512
    /// </summary>
    public sealed class Gost_R3410_2012_512_KeyExchangeFormatter : Gost_R3410_KeyExchangeFormatter<
        Gost_R3410_2012_512_KeyExchange,
        Gost_R3410_2012_512_KeyExchangeParams,
        Gost_R3410_2012_512_KeyExchangeAlgorithm>
    {
        /// <inheritdoc />
        public Gost_R3410_2012_512_KeyExchangeFormatter()
        {
        }

        /// <inheritdoc />
        public Gost_R3410_2012_512_KeyExchangeFormatter(AsymmetricAlgorithm publicKey) : base(publicKey)
        {
        }

        /// <inheritdoc />
        protected override Gost_R3410_EphemeralAsymmetricAlgorithm<Gost_R3410_2012_512_KeyExchangeParams, Gost_R3410_2012_512_KeyExchangeAlgorithm> CreateEphemeralAlgorithm(ProviderType providerType, Gost_R3410_2012_512_KeyExchangeParams keyExchangeParameters)
        {
            return new Gost_R3410_2012_512_EphemeralAsymmetricAlgorithm(providerType, keyExchangeParameters);
        }
    }
}
