How do I create a M2Crypto DSA object given parameters and key values?

Posted by casey on Stack Overflow See other posts from Stack Overflow or by casey
Published on 2010-06-12T02:07:28Z Indexed on 2010/06/12 2:12 UTC
Read the original article Hit count: 323

Filed under:
|

Using M2Crypto I'd like to create a DSA_pub object for verifying a DSA signature. I know q, p, g, and the public key, but the only way I know to instantiate a DSA object is using:

dsa = DSA.set_params(q,p,g)
dsa.gen_key()

How do I assign the known public key?

© Stack Overflow or respective owner

Related posts about python

Related posts about m2crypto