Files
hcs/Hcs.Client/GostCryptography/Xml/Gost_R3410_2001_KeyValue.cs
HOME-LAPTOP\kshkulev 33ab055b43 Add project
Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
2025-08-12 11:21:10 +09:00

37 lines
1.4 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.Gost_R3410;
using System.Security.Cryptography.Xml;
namespace GostCryptography.Xml
{
/// <summary>
/// Параметры открытого ключа цифровой подписи ГОСТ Р 34.10-2001 элемента <see cref="KeyInfo"/>
/// </summary>
public sealed class Gost_R3410_2001_KeyValue : GostKeyValue
{
/// <summary>
/// URI параметров ключа ГОСТ Р 34.10-2001
/// </summary>
public const string KeyValueUrl = SignedXml.XmlDsigNamespaceUrl + " KeyValue/" + Gost_R3410_2001_KeyExchangeXmlSerializer.KeyValueTag;
/// <summary>
/// Известные URIs параметров ключа ГОСТ Р 34.10-2001
/// </summary>
public static readonly string[] KnownValueUrls = { KeyValueUrl };
/// <summary>
/// Создает экземпляр класса с новым ключом ГОСТ Р 34.10-2001
/// </summary>
public Gost_R3410_2001_KeyValue() : base(new Gost_R3410_2001_AsymmetricAlgorithm())
{
}
/// <summary>
/// Создает экземпляр класса с заданным ключом ГОСТ Р 34.10-2001
/// </summary>
public Gost_R3410_2001_KeyValue(Gost_R3410_2001_AsymmetricAlgorithm publicKey) : base(publicKey)
{
}
}
}