diff options
author | Alex Stapleton <alexs@prol.etari.at> | 2014-02-02 19:30:03 +0000 |
---|---|---|
committer | Alex Stapleton <alexs@prol.etari.at> | 2014-02-05 18:34:25 +0000 |
commit | 52026b85c3df15476d38f308cee59a29a9b43195 (patch) | |
tree | 5763cf2c950c8c473f05f6f4bdd4c2f4d8e62029 /tests/hazmat/primitives/test_padding.py | |
parent | f970eaa676eb0cd89cdb2389f03d365899812822 (diff) | |
download | cryptography-52026b85c3df15476d38f308cee59a29a9b43195.tar.gz cryptography-52026b85c3df15476d38f308cee59a29a9b43195.tar.bz2 cryptography-52026b85c3df15476d38f308cee59a29a9b43195.zip |
RSA keys
These are implemented such that they don't depend on the backend. This
means we don't have to worry about passing an RSA key created with one
backend to a different one so much at the expense of having to create a
backend specific context on demand.
This is slightly non-trivial in (at least) OpenSSL as there are 3
additional derived parameters kept in its RSA struct. They aren't
difficult to generate but it requires adding 30-40 lines of BN_* stuff
to the backend so I'm leaving that out for now. We'll need to implement
that before we can actually do any useful operations with the keys.
This also adds a loader for some of the PKCS #1 test vectors. It only
extracts the 10 key pairs from pss_vect.txt currently be should be
extenable to include the example signatures and other files later.
Diffstat (limited to 'tests/hazmat/primitives/test_padding.py')
0 files changed, 0 insertions, 0 deletions