X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fasn1schemas%2Fcert-selfsigned-example.py;h=43a7e4412a6cc6ccd1ea1e738a09c5adcc0aadfd;hp=d6d262db1177c8f7a9fca5f989c111e53bca2776;hb=82af8726ef5d5e2752089a45750e56c9910398c7;hpb=744398c0b6a3ab223d91cbf56a72932a7c87381d diff --git a/pygost/asn1schemas/cert-selfsigned-example.py b/pygost/asn1schemas/cert-selfsigned-example.py index d6d262d..43a7e44 100644 --- a/pygost/asn1schemas/cert-selfsigned-example.py +++ b/pygost/asn1schemas/cert-selfsigned-example.py @@ -75,7 +75,7 @@ print("-----END PRIVATE KEY-----") prv = prv_unmarshal(prv_raw) curve = CURVES["id-tc26-gost-3410-12-512-paramSetA"] -pub_raw = pub_marshal(public_key(curve, prv), mode=2012) +pub_raw = pub_marshal(public_key(curve, prv)) subj = Name(("rdnSequence", RDNSequence([ RelativeDistinguishedName(( AttributeTypeAndValue(( @@ -122,7 +122,6 @@ cert = Certificate(( curve, prv, GOST34112012512(tbs.encode()).digest()[::-1], - mode=2012, ))), )) print("-----BEGIN CERTIFICATE-----")