Commit graph

25 commits

Author SHA1 Message Date
Vladimir Diaz
2612ab6856 Minor edit to comment in create_rsa_signature() 2016-02-11 12:19:15 -05:00
Vladimir Diaz
d3c1631f79 Minor edit to comment to insert semi-colon 2016-01-25 12:18:34 -05:00
Vladimir Diaz
9e8d6822fb Remove variable to hold result of signature verification 2016-01-25 12:12:55 -05:00
Vladimir Diaz
28e2f947b3 Raise correct exception (tuf.Cryptography --> tuf.CryptoError) in verify_rsa_signature() 2016-01-25 11:56:44 -05:00
Vladimir Diaz
5aabfaf094 Remove unused exception variable (as e) 2016-01-25 11:54:31 -05:00
Vladimir Diaz
ac03844b8b Move (earlier) the raised exception statement for an invalid 'signature_method' 2016-01-25 11:51:52 -05:00
Vladimir Diaz
1da95b885b Add missing exceptions to the docstring of verify_rsa_signature() 2016-01-25 11:30:24 -05:00
Vladimir Diaz
2c8dead51a Do not store exception messages in a temp variable 2016-01-25 11:17:21 -05:00
Vladimir Diaz
1e0fe452d9 Raise ValueError, rather than TypeError, in create_rsa_signature() 2016-01-25 11:14:25 -05:00
Vladimir Diaz
4cf3b971b2 Fix comments related to exceptions for create_rsa_signature() 2016-01-22 15:33:23 -05:00
Vladimir Diaz
b69330743e Do not store exception messages (before raising) in a variable 2016-01-21 17:31:26 -05:00
David Halls
015deb4570 Fix Python 3 encoding issues in pcyca_crypto_keys.py 2016-01-15 09:18:25 +00:00
David Halls
4172479d39 Fix Python 3 errors
- Signing data should be byte strings
- Don't log exception outside handler (#300)
2016-01-04 22:00:13 +00:00
Vladimir Diaz
9d9658eaf9 Edits to the end of pyca_crypto_keys.py 2015-08-31 12:02:02 -04:00
Vladimir Diaz
0b4217fbe7 Edits up to _encrypt() 2015-08-31 11:33:19 -04:00
Vladimir Diaz
84d70f8d3b Edits up to _generate_derived_key() 2015-08-31 11:21:27 -04:00
Vladimir Diaz
6b3861fdea Edits up to encrypt_key() 2015-08-31 11:14:35 -04:00
Vladimir Diaz
302ddd27ce Edits up to create_rsa_public_and_private_from_encrypted_pem(). 2015-08-28 17:35:48 -04:00
Vladimir Diaz
398555f32e Review edits up to create_rsa_encrypted_pem().
Add checks against invalid 'data' arguments in relevant functions.
2015-08-28 17:24:57 -04:00
Vladimir Diaz
0f8d4bea45 Edit documentation up to create_rsa_signature() in pyca_crypto_keys.py 2015-08-27 16:37:07 -04:00
Vladimir Diaz
d146570099 Encode and decode the public/private pems returned in a function 2015-08-26 17:30:44 -04:00
Vladimir Diaz
d0d4ee42db Add decryption routines to pyca_crypto_keys.py 2015-08-26 11:21:19 -04:00
Vladimir Diaz
115b2d2bce Ensure the PSS defaults used by PyCrypto match those set with pyca/cryptography's 2015-08-05 14:51:27 -04:00
Vladimir Diaz
b2132e3c72 Support enryption + decryption with pyca/cryptography 2015-07-30 10:19:44 -04:00
Vladimir Diaz
af85746713 Support for pyca/cryptography 2015-07-21 10:16:20 -04:00