A wrapper to present a cryptography api but use the pycryptodome module.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

7 lines
150 B

  1. from Crypto.Util.asn1 import DerSequence
  2. def decode_dss_signature(signature):
  3. obj = DerSequence().decode(der_encoded=signature)
  4. return tuple(obj)