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.GostXades;
using GostXades;
using System.IO;
using System.ServiceModel;
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)

View File

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

View File

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

View File

@ -1,7 +1,7 @@
using Microsoft.Xades;
using System.Security.Cryptography.X509Certificates;
namespace Hcs.GostXades.Abstractions
namespace GostXades.Abstractions
{
/// <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>

View File

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

View File

@ -1,4 +1,4 @@
namespace Hcs.GostXades.Abstractions
namespace GostXades.Abstractions
{
/// <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>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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