summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2020-05-13 00:03:22 +0300
committerSergey Matveev <stargrave@stargrave.org>2020-05-13 00:03:22 +0300
commit76e0eb3ce005e58ca4c411fad968b47c157ad02c (patch)
tree17e48d52f6f51d75f9e6a09ca206268fa4f99e62
parentaa825fdacef98a5aac4046eedd6e7b9a9ee525e3 (diff)
downloadpygost-76e0eb3ce005e58ca4c411fad968b47c157ad02c.tar.xz
More RFC4491bis conformance
https://tools.ietf.org/html/draft-deremin-rfc4491-bis-04 tells that digestParamSet field should be omitted if publicKeyParamSet is id-tc26-gost-3410-2012-256-paramSetA.
-rw-r--r--pygost/asn1schemas/cert-selfsigned-example.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pygost/asn1schemas/cert-selfsigned-example.py b/pygost/asn1schemas/cert-selfsigned-example.py
index e8a3327..89da091 100644
--- a/pygost/asn1schemas/cert-selfsigned-example.py
+++ b/pygost/asn1schemas/cert-selfsigned-example.py
@@ -20,7 +20,6 @@ from pygost.asn1schemas.oids import id_at_commonName
from pygost.asn1schemas.oids import id_ce_subjectKeyIdentifier
from pygost.asn1schemas.oids import id_tc26_gost3410_2012_512
from pygost.asn1schemas.oids import id_tc26_gost3410_2012_512_paramSetA
-from pygost.asn1schemas.oids import id_tc26_gost3411_2012_512
from pygost.asn1schemas.oids import id_tc26_signwithdigest_gost3410_2012_512
from pygost.asn1schemas.prvkey import PrivateKey
from pygost.asn1schemas.prvkey import PrivateKeyAlgorithmIdentifier
@@ -60,7 +59,6 @@ def pem(obj):
key_params = GostR34102012PublicKeyParameters((
("publicKeyParamSet", id_tc26_gost3410_2012_512_paramSetA),
- ("digestParamSet", id_tc26_gost3411_2012_512),
))
prv_raw = urandom(64)