[tahoe-dev] [pycryptopp] #3: serialize ecdsa keys without the fluff
pycryptopp
trac at allmydata.org
Tue Sep 1 08:47:18 PDT 2009
#3: serialize ecdsa keys without the fluff
-----------------------------+----------------------------------------------
Reporter: zooko | Owner: zooko
Type: enhancement | Status: reopened
Priority: major | Version: 0.4.0
Resolution: | Keywords:
Launchpad_bug: |
-----------------------------+----------------------------------------------
Comment(by nejucomo):
Someone with more context should review this ticket and close it.
I've attached a patch which re-enables the ecdsa module contents, unit
tests, and build config. Additionally, it replaces a bare "25" with a
named constant in the module source and adds a unit test ensuring the
serialization is exactly 25 bytes. (This unit test will fail for
different key sizes!)
With these patches len(myVerifier.serialize()) == 25, which is 192 bits of
key plus 1 byte of overhead. There is no fluff.
--
Ticket URL: <http://allmydata.org/trac/pycryptopp/ticket/3#comment:11>
pycryptopp <http://allmydata.org/trac/pycryptopp>
Python bindings for the Crypto++ library
More information about the tahoe-dev
mailing list