Add support for ГОСТ Р 34.10 digital signatures
- 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.
This commit is contained in:
@@ -8,6 +8,7 @@ StellaOps:
|
||||
ru-offline:
|
||||
PreferredProviders:
|
||||
- ru.cryptopro.csp
|
||||
- ru.openssl.gost
|
||||
- ru.pkcs11
|
||||
CryptoPro:
|
||||
Keys:
|
||||
@@ -27,6 +28,14 @@ StellaOps:
|
||||
Pin: "${PKCS11_PIN}"
|
||||
PrivateKeyLabel: rootpack-signing
|
||||
CertificateThumbprint: "<thumbprint>"
|
||||
OpenSsl:
|
||||
Keys:
|
||||
- KeyId: ru-openssl-default
|
||||
Algorithm: GOST12-256
|
||||
PrivateKeyPath: /opt/stellaops/keys/ru_openssl_priv.pem
|
||||
PrivateKeyPassphraseEnvVar: RU_OPENSSL_PRIV_PASS
|
||||
CertificatePath: /opt/stellaops/certs/ru_openssl_cert.pem
|
||||
SignatureFormat: Der
|
||||
Diagnostics:
|
||||
Providers:
|
||||
Enabled: true
|
||||
|
||||
Reference in New Issue
Block a user