]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/asn1schemas/cert-selfsigned-example.py
Remove excess mode kwargs from gost3410* functions
[pygost.git] / pygost / asn1schemas / cert-selfsigned-example.py
index d6d262db1177c8f7a9fca5f989c111e53bca2776..43a7e4412a6cc6ccd1ea1e738a09c5adcc0aadfd 100644 (file)
@@ -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-----")