Add project
Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
public static class Gost_R3410_2012_512_Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// Алгоритм ГОСТ Р 34.10-2012 для ключей длины 512 бит, используемый при экспорте/импорте ключей
|
||||
/// </summary>
|
||||
public static readonly OidValue KeyAlgorithm = OidValue.FromString("1.2.643.7.1.1.1.2");
|
||||
|
||||
/// <summary>
|
||||
/// Алгоритм Диффи-Хеллмана на базе эллиптической кривой для ключей длины 512 бит
|
||||
/// </summary>
|
||||
public static readonly OidValue DhAlgorithm = OidValue.FromString("1.2.643.7.1.1.6.2");
|
||||
|
||||
/// <summary>
|
||||
/// Алгоритм цифровой подписи ГОСТ Р 34.10-2012 для ключей длины 512 бит
|
||||
/// </summary>
|
||||
public static readonly OidValue SignatureAlgorithm = OidValue.FromString("1.2.643.7.1.1.3.3");
|
||||
|
||||
/// <summary>
|
||||
/// Функция хэширования ГОСТ Р 34.11-2012, длина выхода 512 бит
|
||||
/// </summary>
|
||||
public static readonly OidValue HashAlgorithm = OidValue.FromString("1.2.643.7.1.1.2.3");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
using GostCryptography.Asn1.Ber;
|
||||
using GostCryptography.Asn1.Gost.Gost_R3410;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
public sealed class Gost_R3410_2012_512_DhPublicKeyType : Gost_R3410_PublicKeyType
|
||||
{
|
||||
protected override Asn1Type CreateParams()
|
||||
{
|
||||
return new Gost_R3410_2012_512_PublicKeyParams();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
using GostCryptography.Asn1.Gost.Gost_R3410;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public sealed class Gost_R3410_2012_512_KeyExchange : Gost_R3410_KeyExchange
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override OidValue KeyAlgorithm => Gost_R3410_2012_512_Constants.KeyAlgorithm;
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override Gost_R3410_PublicKeyParams CreatePublicKeyParams() => new Gost_R3410_2012_512_PublicKeyParams();
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override Gost_R3410_KeyExchangeParams CreateKeyExchangeParams() => new Gost_R3410_2012_512_KeyExchangeParams();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
using GostCryptography.Asn1.Gost.Gost_R3410;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public sealed class Gost_R3410_2012_512_KeyExchangeParams : Gost_R3410_KeyExchangeParams
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public Gost_R3410_2012_512_KeyExchangeParams()
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public Gost_R3410_2012_512_KeyExchangeParams(Gost_R3410_2012_512_KeyExchangeParams other) : base(other)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override Gost_R3410_KeyExchangeParams Clone() => new Gost_R3410_2012_512_KeyExchangeParams(this);
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override Gost_R3410_PublicKey CreatePublicKey() => new Gost_R3410_2012_512_PublicKey();
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override Gost_R3410_PublicKeyParams CreatePublicKeyParams() => new Gost_R3410_2012_512_PublicKeyParams();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
using GostCryptography.Asn1.Gost.Gost_R3410;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public sealed class Gost_R3410_2012_512_PublicKey : Gost_R3410_PublicKey
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public Gost_R3410_2012_512_PublicKey() : base(128)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
using GostCryptography.Asn1.Gost.Gost_R3410;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
public sealed class Gost_R3410_2012_512_PublicKeyParams : Gost_R3410_PublicKeyParams
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
using GostCryptography.Asn1.Ber;
|
||||
using GostCryptography.Asn1.Gost.Gost_R3410;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
public sealed class Gost_R3410_2012_512_PublicKeyType : Gost_R3410_PublicKeyType
|
||||
{
|
||||
protected override Asn1Type CreateParams()
|
||||
{
|
||||
return new Gost_R3410_2012_512_PublicKeyParams();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
using GostCryptography.Asn1.Gost.Gost_R3411;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
public sealed class Gost_R3411_2012_512_DigestParams : Gost_R3411_DigestParams
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
using GostCryptography.Asn1.Ber;
|
||||
using GostCryptography.Asn1.Gost.Gost_R3411;
|
||||
|
||||
namespace GostCryptography.Asn1.Gost.Gost_R3410_2012_512
|
||||
{
|
||||
public sealed class Gost_R3411_2012_512_DigestParamsType : Gost_R3411_DigestParamsType
|
||||
{
|
||||
protected override Asn1Type CreateParams()
|
||||
{
|
||||
return new Gost_R3411_2012_512_DigestParams();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user