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_2012_256
{
public static class Gost_R3410_2012_256_Constants
{
/// <summary>
/// Алгоритм ГОСТ Р 34.10-2012 для ключей длины 256 бит, используемый при экспорте/импорте ключей
/// </summary>
public static readonly OidValue KeyAlgorithm = OidValue.FromString("1.2.643.7.1.1.1.1");
/// <summary>
/// Алгоритм Диффи-Хеллмана на базе эллиптической кривой для ключей длины 256 бит
/// </summary>
public static readonly OidValue DhAlgorithm = OidValue.FromString("1.2.643.7.1.1.6.1");
/// <summary>
/// Алгоритм цифровой подписи ГОСТ Р 34.10-2012 для ключей длины 256 бит
/// </summary>
public static readonly OidValue SignatureAlgorithm = OidValue.FromString("1.2.643.7.1.1.3.2");
/// <summary>
/// Функция хэширования ГОСТ Р 34.11-2012, длина выхода 256 бит
/// </summary>
public static readonly OidValue HashAlgorithm = OidValue.FromString("1.2.643.7.1.1.2.2");
}
}

View File

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

View File

@ -0,0 +1,17 @@
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_256
{
/// <inheritdoc />
public sealed class Gost_R3410_2012_256_KeyExchange : Gost_R3410_KeyExchange
{
/// <inheritdoc />
protected override OidValue KeyAlgorithm => Gost_R3410_2012_256_Constants.KeyAlgorithm;
/// <inheritdoc />
protected override Gost_R3410_PublicKeyParams CreatePublicKeyParams() => new Gost_R3410_2012_256_PublicKeyParams();
/// <inheritdoc />
protected override Gost_R3410_KeyExchangeParams CreateKeyExchangeParams() => new Gost_R3410_2012_256_KeyExchangeParams();
}
}

View File

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

View File

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

View File

@ -0,0 +1,8 @@
using GostCryptography.Asn1.Gost.Gost_R3410;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_256
{
public sealed class Gost_R3410_2012_256_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_2012_256
{
public sealed class Gost_R3410_2012_256_PublicKeyType : Gost_R3410_PublicKeyType
{
protected override Asn1Type CreateParams()
{
return new Gost_R3410_2012_256_PublicKeyParams();
}
}
}

View File

@ -0,0 +1,8 @@
using GostCryptography.Asn1.Gost.Gost_R3411;
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_256
{
public sealed class Gost_R3411_2012_256_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_2012_256
{
public sealed class Gost_R3411_2012_256_DigestParamsType : Gost_R3411_DigestParamsType
{
protected override Asn1Type CreateParams()
{
return new Gost_R3411_2012_256_DigestParams();
}
}
}