Add project

Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
This commit is contained in:
2025-08-12 11:21:10 +09:00
parent bbcbe841a7
commit 33ab055b43
546 changed files with 176950 additions and 0 deletions

View File

@ -0,0 +1,31 @@
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);
}
}
}