Files
hcs/Hcs.ClientNet/GostCryptography/Gost_R3410/Gost_R3410_2001_KeyExchangeFormatter.cs

32 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using GostCryptography.Asn1.Gost.Gost_R3410_2001;
using GostCryptography.Base;
using System.Security.Cryptography;
namespace GostCryptography.Gost_R3410
{
/// <summary>
/// Реализация шифрования общего секретного ключа по ГОСТ Р 34.10-2001
/// </summary>
public sealed class Gost_R3410_2001_KeyExchangeFormatter : Gost_R3410_KeyExchangeFormatter<
Gost_R3410_2001_KeyExchange,
Gost_R3410_2001_KeyExchangeParams,
Gost_R3410_2001_KeyExchangeAlgorithm>
{
/// <inheritdoc />
public Gost_R3410_2001_KeyExchangeFormatter()
{
}
/// <inheritdoc />
public Gost_R3410_2001_KeyExchangeFormatter(AsymmetricAlgorithm publicKey) : base(publicKey)
{
}
/// <inheritdoc />
protected override Gost_R3410_EphemeralAsymmetricAlgorithm<Gost_R3410_2001_KeyExchangeParams, Gost_R3410_2001_KeyExchangeAlgorithm> CreateEphemeralAlgorithm(ProviderType providerType, Gost_R3410_2001_KeyExchangeParams keyExchangeParameters)
{
return new Gost_R3410_2001_EphemeralAsymmetricAlgorithm(providerType, keyExchangeParameters);
}
}
}