Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check that public_exponent is odd | Alex Stapleton | 2014-02-07 | 1 | -12/+20 |
| | |||||
* | Use os.path.join to make paths | Alex Stapleton | 2014-02-06 | 1 | -1/+4 |
| | |||||
* | More sanity checks | Alex Stapleton | 2014-02-06 | 1 | -0/+12 |
| | |||||
* | Test alias properties | Alex Stapleton | 2014-02-05 | 1 | -0/+5 |
| | |||||
* | Check p*q=n in the tests | Alex Stapleton | 2014-02-05 | 1 | -0/+2 |
| | |||||
* | Sanity check keys. | Alex Stapleton | 2014-02-05 | 1 | -1/+35 |
| | | | | Taken from RFC 3447. | ||||
* | RSA keys | Alex Stapleton | 2014-02-05 | 1 | -0/+58 |
| | | | | | | | | | | | | | | | | | 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. | ||||
* | PKCS #1 RSA test vector loader | Alex Stapleton | 2014-02-05 | 2 | -1/+375 |
| | |||||
* | Made OpenSSL's derive_pbkdf2_hmac raise the right exception | Alex Gaynor | 2014-02-04 | 1 | -1/+7 |
| | |||||
* | Merge branch 'master' into prioritized-multi-backend | Alex Gaynor | 2014-02-03 | 11 | -13/+24585 |
|\ | |||||
| * | Properly mark all test cases as dependant on HMAC. | David Reid | 2014-02-03 | 2 | -5/+5 |
| | | |||||
| * | Don't forget InvalidKey. | David Reid | 2014-02-03 | 1 | -1/+1 |
| | | |||||
| * | Import exception classes instead of the exceptions module. | David Reid | 2014-02-03 | 1 | -4/+4 |
| | | |||||
| * | Don't expose extract and expand on this class yet because we don't know how ↵ | David Reid | 2014-02-03 | 2 | -20/+2 |
| | | | | | | | | best to expose verify functionality, continue testing the stages using the private methods. | ||||
| * | Complete test coverage | David Reid | 2014-02-03 | 1 | -0/+26 |
| | | |||||
| * | Use six.u for great good. | David Reid | 2014-02-03 | 1 | -5/+19 |
| | | |||||
| * | Consistently use double quotes. | David Reid | 2014-02-03 | 1 | -11/+11 |
| | | |||||
| * | Aggressively type-check for text. | David Reid | 2014-02-03 | 1 | -0/+40 |
| | | |||||
| * | bytes all the things. | David Reid | 2014-02-03 | 1 | -6/+6 |
| | | |||||
| * | Remove more leftovers from rebase. | David Reid | 2014-02-03 | 1 | -43/+2 |
| | | |||||
| * | Add test cases for length checking and already finalized. | David Reid | 2014-02-03 | 1 | -0/+85 |
| | | |||||
| * | Remove load_hkdf_vectors which snuck in with a rebase. | David Reid | 2014-02-03 | 1 | -30/+0 |
| | | |||||
| * | Closer to proposed interface in #513. | David Reid | 2014-02-03 | 1 | -14/+18 |
| | | |||||
| * | Use the nist vector loader. | David Reid | 2014-02-03 | 2 | -21/+15 |
| | | |||||
| * | Fix case. | David Reid | 2014-02-03 | 1 | -2/+2 |
| | | |||||
| * | Fix pep8. | David Reid | 2014-02-03 | 2 | -33/+22 |
| | | |||||
| * | Break up hkdf_derive into hkdf_extract and hkdf_expand. | David Reid | 2014-02-03 | 2 | -30/+48 |
| | | | | | | | | | | | | | | | | Testing each individually against all the vectors and actually asserting about the intermediate state. hkdf_derive is now just a helper function which copes with the default arguments. | ||||
| * | This got split into SHA1 and SHA256 | David Reid | 2014-02-03 | 1 | -83/+0 |
| | | |||||
| * | Refactor HKDF support and provide vectors for tests. | David Reid | 2014-02-03 | 5 | -2/+263 |
| | | |||||
| * | More detailed error message for InternalError | Alex Stapleton | 2014-02-02 | 1 | -0/+17 |
| | | | | | | | | | | Uses ERR_error_string_n because the source contains horrible warnings against ever using ERR_error_string. | ||||
| * | Handle multiple errors on the stack | Alex Stapleton | 2014-02-01 | 1 | -13/+33 |
| | | |||||
| * | Merge pull request #537 from public/pkcs1-vectors | David Reid | 2014-01-31 | 7 | -0/+24276 |
| |\ | | | | | | | PKCS#1 vectors | ||||
| | * | PKCS#1 vectors | Alex Stapleton | 2014-01-31 | 7 | -0/+24276 |
| | | | | | | | | | | | | | | | From ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/ and ftp://ftp.rsa.com/pub/rsalabs/tmp/ | ||||
* | | | Rename and document | Alex Gaynor | 2014-02-03 | 1 | -6/+6 |
| | | | |||||
* | | | pep8 fixes | Alex Gaynor | 2014-01-31 | 2 | -2/+0 |
| | | | |||||
* | | | Fix | Alex Gaynor | 2014-01-30 | 1 | -1/+9 |
| | | | |||||
* | | | More direct tests | Alex Gaynor | 2014-01-30 | 1 | -1/+49 |
| | | | |||||
* | | | Not true anymore | Alex Gaynor | 2014-01-30 | 1 | -3/+0 |
| | | | |||||
* | | | Direct tests for the hash support | Alex Gaynor | 2014-01-30 | 1 | -0/+25 |
| | | | |||||
* | | | Direct tests for the cipher support | Alex Gaynor | 2014-01-30 | 1 | -1/+49 |
| | | | |||||
* | | | Replace re-running all tests with some unit tests | Alex Gaynor | 2014-01-30 | 2 | -4/+17 |
| | | | |||||
* | | | Initial work on a prioritized multibackend for which implements CipherBackend | Alex Gaynor | 2014-01-30 | 1 | -1/+4 |
|/ / | |||||
* | | add test for null char replacement | Paul Kehrer | 2014-01-29 | 1 | -0/+19 |
| | | |||||
* | | rename test files | Paul Kehrer | 2014-01-28 | 2 | -0/+0 |
| | | |||||
* | | add some unicode checks for salt on init and key_material on derive | Paul Kehrer | 2014-01-28 | 1 | -0/+10 |
| | | |||||
* | | okay this time really finish the rename. Up example iterations to 100k | Paul Kehrer | 2014-01-28 | 4 | -18/+18 |
| | | |||||
* | | remove length check (which cffi handles) | Paul Kehrer | 2014-01-28 | 1 | -4/+0 |
| | | |||||
* | | test coverage, other changes | Paul Kehrer | 2014-01-28 | 1 | -0/+63 |
| | | |||||
* | | PBKDF2 support for OpenSSL backend | Paul Kehrer | 2014-01-28 | 4 | -1/+68 |
| | | |||||
* | | add PBKDF2 SHA1 vectors from RFC 6070 | Paul Kehrer | 2014-01-27 | 1 | -0/+48 |
| | |