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,25 @@
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
public static class Gost_R3410_2001_Constants
{
/// <summary>
/// Алгоритм ГОСТ Р 34.10-2001, используемый при экспорте/импорте ключей
/// </summary>
public static readonly OidValue KeyAlgorithm = OidValue.FromString("1.2.643.2.2.19");
/// <summary>
/// Алгоритм Диффи-Хеллмана на базе эллиптической кривой
/// </summary>
public static readonly OidValue DhAlgorithm = OidValue.FromString("1.2.643.2.2.98");
/// <summary>
/// Алгоритм цифровой подписи ГОСТ Р 34.10-2001
/// </summary>
public static readonly OidValue SignatureAlgorithm = OidValue.FromString("1.2.643.2.2.3");
/// <summary>
/// Функция хэширования ГОСТ Р 34.11-94
/// </summary>
public static readonly OidValue HashAlgorithm = OidValue.FromString("1.2.643.2.2.9");
}
}

View File

@ -0,0 +1,13 @@
using GostCryptography.Asn1.Ber;
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
public sealed class Gost_R3410_2001_DhPublicKeyType : Gost_R3410_PublicKeyType
{
protected override Asn1Type CreateParams()
{
return new Gost_R3410_2001_PublicKeyParams();
}
}
}

View File

@ -0,0 +1,17 @@
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
/// <inheritdoc />
public sealed class Gost_R3410_2001_KeyExchange : Gost_R3410_KeyExchange
{
/// <inheritdoc />
protected override OidValue KeyAlgorithm => Gost_R3410_2001_Constants.KeyAlgorithm;
/// <inheritdoc />
protected override Gost_R3410_PublicKeyParams CreatePublicKeyParams() => new Gost_R3410_2001_PublicKeyParams();
/// <inheritdoc />
protected override Gost_R3410_KeyExchangeParams CreateKeyExchangeParams() => new Gost_R3410_2001_KeyExchangeParams();
}
}

View File

@ -0,0 +1,27 @@
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
/// <inheritdoc />
public sealed class Gost_R3410_2001_KeyExchangeParams : Gost_R3410_KeyExchangeParams
{
/// <inheritdoc />
public Gost_R3410_2001_KeyExchangeParams()
{
}
/// <inheritdoc />
public Gost_R3410_2001_KeyExchangeParams(Gost_R3410_2001_KeyExchangeParams other) : base(other)
{
}
/// <inheritdoc />
public override Gost_R3410_KeyExchangeParams Clone() => new Gost_R3410_2001_KeyExchangeParams(this);
/// <inheritdoc />
protected override Gost_R3410_PublicKey CreatePublicKey() => new Gost_R3410_2001_PublicKey();
/// <inheritdoc />
protected override Gost_R3410_PublicKeyParams CreatePublicKeyParams() => new Gost_R3410_2001_PublicKeyParams();
}
}

View File

@ -0,0 +1,13 @@
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
/// <inheritdoc />
public sealed class Gost_R3410_2001_PublicKey : Gost_R3410_PublicKey
{
/// <inheritdoc />
public Gost_R3410_2001_PublicKey() : base(64)
{
}
}
}

View File

@ -0,0 +1,8 @@
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
public sealed class Gost_R3410_2001_PublicKeyParams : Gost_R3410_PublicKeyParams
{
}
}

View File

@ -0,0 +1,13 @@
using GostCryptography.Asn1.Ber;
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
public sealed class Gost_R3410_2001_PublicKeyType : Gost_R3410_PublicKeyType
{
protected override Asn1Type CreateParams()
{
return new Gost_R3410_2001_PublicKeyParams();
}
}
}

View File

@ -0,0 +1,8 @@
using GostCryptography.Asn1.Gost.Gost_R3411;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
public sealed class Gost_R3411_2001_DigestParams : Gost_R3411_DigestParams
{
}
}

View File

@ -0,0 +1,13 @@
using GostCryptography.Asn1.Ber;
using GostCryptography.Asn1.Gost.Gost_R3411;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2001
{
public sealed class Gost_R3411_2001_DigestParamsType : Gost_R3411_DigestParamsType
{
protected override Asn1Type CreateParams()
{
return new Gost_R3411_2001_DigestParams();
}
}
}