Exclude GostXades from Hcs namespace

This commit is contained in:
2025-08-24 18:26:02 +09:00
parent a76d283936
commit 563b6a59f4
27 changed files with 38 additions and 38 deletions

View File

@ -1,5 +1,5 @@
using Hcs.Client.Internal; using Hcs.Client.Internal;
using Hcs.GostXades; using GostXades;
using System.IO; using System.IO;
using System.ServiceModel; using System.ServiceModel;
using System.ServiceModel.Channels; using System.ServiceModel.Channels;

View File

@ -31,9 +31,9 @@ namespace Hcs.ClientApi
} }
} }
public static Hcs.GostXades.CryptoProviderTypeEnum GetProviderType(this X509Certificate2 certificate) public static GostXades.CryptoProviderTypeEnum GetProviderType(this X509Certificate2 certificate)
{ {
return (Hcs.GostXades.CryptoProviderTypeEnum)GetProviderInfo(certificate).Item1; return (GostXades.CryptoProviderTypeEnum)GetProviderInfo(certificate).Item1;
} }
public static Tuple<int, string> GetProviderInfo(this X509Certificate2 certificate) public static Tuple<int, string> GetProviderInfo(this X509Certificate2 certificate)

View File

@ -20,7 +20,7 @@ namespace Hcs.ClientApi
/// <summary> /// <summary>
/// Тип криптопровайдера полученный из сертификата /// Тип криптопровайдера полученный из сертификата
/// </summary> /// </summary>
public Hcs.GostXades.CryptoProviderTypeEnum CryptoProviderType { get; internal set; } public GostXades.CryptoProviderTypeEnum CryptoProviderType { get; internal set; }
public GostCryptography.Base.ProviderType GostCryptoProviderType => public GostCryptography.Base.ProviderType GostCryptoProviderType =>
(GostCryptography.Base.ProviderType)CryptoProviderType; (GostCryptography.Base.ProviderType)CryptoProviderType;

View File

@ -1,4 +1,4 @@
using Hcs.GostXades; using GostXades;
using System; using System;
using System.IO; using System.IO;
using System.ServiceModel; using System.ServiceModel;

View File

@ -1,7 +1,7 @@
using Microsoft.Xades; using Microsoft.Xades;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
namespace Hcs.GostXades.Abstractions namespace GostXades.Abstractions
{ {
/// <summary> /// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> XML <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> XML <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@ -3,7 +3,7 @@ using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml; using System.Security.Cryptography.Xml;
namespace Hcs.GostXades.Abstractions namespace GostXades.Abstractions
{ {
public interface ICryptoProvider public interface ICryptoProvider
{ {

View File

@ -1,4 +1,4 @@
namespace Hcs.GostXades.Abstractions namespace GostXades.Abstractions
{ {
/// <summary> /// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@ -1,4 +1,4 @@
namespace Hcs.GostXades.Abstractions namespace GostXades.Abstractions
{ {
public interface IXadesService public interface IXadesService
{ {

View File

@ -1,5 +1,5 @@
using Hcs.GostXades.Abstractions; using GostXades.Abstractions;
using Hcs.GostXades.Helpers; using GostXades.Helpers;
using Microsoft.Xades; using Microsoft.Xades;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -7,7 +7,7 @@ using System.Linq;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml; using System.Security.Cryptography.Xml;
namespace Hcs.GostXades namespace GostXades
{ {
public class CertificateMatcher : ICertificateMatcher public class CertificateMatcher : ICertificateMatcher
{ {

View File

@ -1,4 +1,4 @@
namespace Hcs.GostXades namespace GostXades
{ {
/// <summary> /// <summary>
/// Типы криптопровайдеров /// Типы криптопровайдеров

View File

@ -1,8 +1,8 @@
using GostCryptography.Config; using GostCryptography.Config;
using GostCryptography.Gost_R3410; using GostCryptography.Gost_R3410;
using GostCryptography.Gost_R3411; using GostCryptography.Gost_R3411;
using Hcs.GostXades.Abstractions; using GostXades.Abstractions;
using Hcs.GostXades.Helpers; using GostXades.Helpers;
using Microsoft.Xades; using Microsoft.Xades;
using Org.BouncyCastle.X509; using Org.BouncyCastle.X509;
using System; using System;
@ -12,7 +12,7 @@ using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml; using System.Security.Cryptography.Xml;
namespace Hcs.GostXades namespace GostXades
{ {
public class GostCryptoProvider : ICryptoProvider public class GostCryptoProvider : ICryptoProvider
{ {

View File

@ -1,8 +1,8 @@
using Hcs.GostXades.Abstractions; using GostXades.Abstractions;
using Hcs.GostXades.Helpers; using GostXades.Helpers;
using System; using System;
namespace Hcs.GostXades namespace GostXades
{ {
public class GostXadesBesService : IXadesService public class GostXadesBesService : IXadesService
{ {

View File

@ -1,6 +1,6 @@
using System; using System;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class ArrayHelper public static class ArrayHelper
{ {

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class CertificateHelper public static class CertificateHelper
{ {

View File

@ -1,7 +1,7 @@
using System.Collections; using System.Collections;
using System.Linq; using System.Linq;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class CollectionHelper public static class CollectionHelper
{ {

View File

@ -1,6 +1,6 @@
using System.Numerics; using System.Numerics;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class ConvertHelper public static class ConvertHelper
{ {

View File

@ -1,6 +1,6 @@
using System; using System;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class DateTimeHelper public static class DateTimeHelper
{ {

View File

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class EnumerableHelper public static class EnumerableHelper
{ {

View File

@ -1,7 +1,7 @@
using GostCryptography.Config; using GostCryptography.Config;
using System; using System;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class GostHashAlgorithmHelper public static class GostHashAlgorithmHelper
{ {

View File

@ -3,7 +3,7 @@ using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml; using System.Security.Cryptography.Xml;
using System.Xml; using System.Xml;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class KeyInfoHelper public static class KeyInfoHelper
{ {

View File

@ -2,7 +2,7 @@
using System.Linq; using System.Linq;
using System.Text; using System.Text;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class X509NameHelper public static class X509NameHelper
{ {

View File

@ -1,7 +1,7 @@
using Microsoft.Xades; using Microsoft.Xades;
using System.Xml; using System.Xml;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class XadesSignedXmlHelper public static class XadesSignedXmlHelper
{ {

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Xml; using System.Xml;
namespace Hcs.GostXades.Helpers namespace GostXades.Helpers
{ {
public static class XmlDocumentHelper public static class XmlDocumentHelper
{ {

View File

@ -1,11 +1,11 @@
using Hcs.GostXades.Abstractions; using GostXades.Abstractions;
using Hcs.GostXades.Helpers; using GostXades.Helpers;
using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Asn1.X509;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace Hcs.GostXades namespace GostXades
{ {
public class IssuerComparer : IIssuerComparer public class IssuerComparer : IIssuerComparer
{ {

View File

@ -1,5 +1,5 @@
using Hcs.GostXades.Abstractions; using GostXades.Abstractions;
using Hcs.GostXades.Helpers; using GostXades.Helpers;
using Microsoft.Xades; using Microsoft.Xades;
using System; using System;
using System.Linq; using System.Linq;
@ -7,7 +7,7 @@ using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
using System.Xml; using System.Xml;
namespace Hcs.GostXades namespace GostXades
{ {
public class XadesBesSignedXml : XadesSignedXml public class XadesBesSignedXml : XadesSignedXml
{ {

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace Hcs.GostXades namespace GostXades
{ {
[Serializable] [Serializable]
public class XadesBesValidationException : Exception public class XadesBesValidationException : Exception

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
namespace Hcs.GostXades namespace GostXades
{ {
public class XadesInfo public class XadesInfo
{ {