- Implemented the GostKeyValue class for handling public key parameters in ГОСТ Р 34.10 digital signatures. - Created the GostSignedXml class to manage XML signatures using ГОСТ 34.10, including methods for computing and checking signatures. - Developed the GostSignedXmlImpl class to encapsulate the signature computation logic and public key retrieval. - Added specific key value classes for ГОСТ Р 34.10-2001, ГОСТ Р 34.10-2012/256, and ГОСТ Р 34.10-2012/512 to support different signature algorithms. - Ensured compatibility with existing XML signature standards while integrating ГОСТ cryptography.
21 lines
596 B
C#
21 lines
596 B
C#
using StellaOps.Cryptography.Plugin.OpenSslGost;
|
|
using StellaOps.Cryptography.Plugin.Pkcs11Gost;
|
|
#if STELLAOPS_CRYPTO_PRO
|
|
using StellaOps.Cryptography.Plugin.CryptoPro;
|
|
#endif
|
|
|
|
namespace StellaOps.Cryptography.DependencyInjection;
|
|
|
|
public sealed class StellaOpsCryptoOptions
|
|
{
|
|
public CryptoProviderRegistryOptions Registry { get; set; } = new();
|
|
|
|
#if STELLAOPS_CRYPTO_PRO
|
|
public CryptoProGostProviderOptions CryptoPro { get; set; } = new();
|
|
#endif
|
|
|
|
public Pkcs11GostProviderOptions Pkcs11 { get; set; } = new();
|
|
|
|
public OpenSslGostProviderOptions OpenSsl { get; set; } = new();
|
|
}
|