aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
Commit message (Collapse)AuthorAgeFilesLines
...
| * RSA keysAlex Stapleton2014-02-051-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.
* | remove deactivate and replace with activate_builtin_randomPaul Kehrer2014-02-051-147/+13
| |
* | Merge branch 'master' into urandom-enginePaul Kehrer2014-02-051-1/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: PKCS #1 RSA test vector loader Removed pointless anchor Docs need virtualenv as well Everything about bash is the worst Some reST markup nonsense Fix for OS X More clearly describe the behavior of constant_time.bytes_eq Run the doc tests under OS X Made OpenSSL's derive_pbkdf2_hmac raise the right exception Document which backends implement which itnerfaces. Fixes #538 pep8 Fixed a typo in the docs Make the default backend be a multi-backend Conflicts: tests/hazmat/backends/test_openssl.py
| * Made OpenSSL's derive_pbkdf2_hmac raise the right exceptionAlex Gaynor2014-02-041-1/+7
| |
* | assert the right thingPaul Kehrer2014-02-041-1/+1
| |
* | Merge branch 'master' into urandom-enginePaul Kehrer2014-02-0312-17/+24729
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (66 commits) Chanloge + versionadded Added an example usage Typo fix Added to toctree Rename and document Linkify the things we have that others don't add HKDF to changelog Strings have quote marks at both ends. HKDF example. Properly mark all test cases as dependant on HMAC. Remove language about the separate stages of HKDF until we expose multiple stages of HKDF. Don't forget InvalidKey. Fix typo Import exception classes instead of the exceptions module. Lose the bit about passwords. https a bunch of links. Pseudorandom is a word. Backtick the entire equation. Clarify salt language and link to the paper in addition to the RFC. Don't expose extract and expand on this class yet because we don't know how best to expose verify functionality, continue testing the stages using the private methods. ... Conflicts: docs/hazmat/backends/openssl.rst
| * Merge branch 'master' into prioritized-multi-backendAlex Gaynor2014-02-0311-13/+24585
| |\
| | * Properly mark all test cases as dependant on HMAC.David Reid2014-02-032-5/+5
| | |
| | * Don't forget InvalidKey.David Reid2014-02-031-1/+1
| | |
| | * Import exception classes instead of the exceptions module.David Reid2014-02-031-4/+4
| | |
| | * Don't expose extract and expand on this class yet because we don't know how ↵David Reid2014-02-032-20/+2
| | | | | | | | | | | | best to expose verify functionality, continue testing the stages using the private methods.
| | * Complete test coverageDavid Reid2014-02-031-0/+26
| | |
| | * Use six.u for great good.David Reid2014-02-031-5/+19
| | |
| | * Consistently use double quotes.David Reid2014-02-031-11/+11
| | |
| | * Aggressively type-check for text.David Reid2014-02-031-0/+40
| | |
| | * bytes all the things.David Reid2014-02-031-6/+6
| | |
| | * Add test cases for length checking and already finalized.David Reid2014-02-031-0/+85
| | |
| | * Closer to proposed interface in #513.David Reid2014-02-031-14/+18
| | |
| | * Use the nist vector loader.David Reid2014-02-032-21/+15
| | |
| | * Fix case.David Reid2014-02-031-2/+2
| | |
| | * Fix pep8.David Reid2014-02-031-0/+1
| | |
| | * Break up hkdf_derive into hkdf_extract and hkdf_expand.David Reid2014-02-031-9/+41
| | | | | | | | | | | | | | | | | | | | | | | | 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 SHA256David Reid2014-02-031-83/+0
| | |
| | * Refactor HKDF support and provide vectors for tests.David Reid2014-02-033-0/+164
| | |
| | * More detailed error message for InternalErrorAlex Stapleton2014-02-021-0/+17
| | | | | | | | | | | | | | | Uses ERR_error_string_n because the source contains horrible warnings against ever using ERR_error_string.
| | * Handle multiple errors on the stackAlex Stapleton2014-02-011-13/+33
| | |
| | * Merge pull request #537 from public/pkcs1-vectorsDavid Reid2014-01-317-0/+24276
| | |\ | | | | | | | | PKCS#1 vectors
| | | * PKCS#1 vectorsAlex Stapleton2014-01-317-0/+24276
| | | | | | | | | | | | | | | | | | | | From ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/ and ftp://ftp.rsa.com/pub/rsalabs/tmp/
| * | | Rename and documentAlex Gaynor2014-02-031-6/+6
| | | |
| * | | pep8 fixesAlex Gaynor2014-01-312-2/+0
| | | |
| * | | FixAlex Gaynor2014-01-301-1/+9
| | | |
| * | | More direct testsAlex Gaynor2014-01-301-1/+49
| | | |
| * | | Not true anymoreAlex Gaynor2014-01-301-3/+0
| | | |
| * | | Direct tests for the hash supportAlex Gaynor2014-01-301-0/+25
| | | |
| * | | Direct tests for the cipher supportAlex Gaynor2014-01-301-1/+49
| | | |
| * | | Replace re-running all tests with some unit testsAlex Gaynor2014-01-301-0/+16
| |/ /
* | | add catastrophic failure check to testsPaul Kehrer2014-02-021-0/+7
| | |
* | | change register/unregister to activate/deactivatePaul Kehrer2014-01-311-20/+20
| | |
* | | add windows support to random engine testsPaul Kehrer2014-01-291-1/+8
| | |
* | | Merge branch 'master' into urandom-enginePaul Kehrer2014-01-299-10/+420
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (108 commits) PBKDF2HMAC requires a PBKDF2HMACBackend provider. one more replacement simplify hmac supported and hash supported calls for commoncrypto simplify check for algorithm a bit more language work + changelog changes for pbkdf2hmac one more style fix a few typo fixes, capitalization, etc switch to private attributes in pbkdf2hmac expand docs to talk more about the purposes of KDFs update docs re: PBKDF2HMAC iterations add test for null char replacement Added installation section to index.rst called -> used quotes inside, diff examples Expose this method because probably someone will need it eventually fix spacing, remove versionadded since HashAlgorithm was in 0.1 document HashAlgorithm Added canonical installation document with details about various platforms, fixes #519 update docs for pbkdf2 Add bindings for X509_REQ_get_extensions. ... Conflicts: cryptography/hazmat/bindings/openssl/binding.py docs/hazmat/backends/openssl.rst
| * | rename test filesPaul Kehrer2014-01-282-0/+0
| | |
| * | add some unicode checks for salt on init and key_material on derivePaul Kehrer2014-01-281-0/+10
| | |
| * | okay this time really finish the rename. Up example iterations to 100kPaul Kehrer2014-01-283-16/+16
| | |
| * | remove length check (which cffi handles)Paul Kehrer2014-01-281-4/+0
| | |
| * | test coverage, other changesPaul Kehrer2014-01-281-0/+63
| | |
| * | PBKDF2 support for OpenSSL backendPaul Kehrer2014-01-282-0/+62
| | |
| * | add PBKDF2 SHA1 vectors from RFC 6070Paul Kehrer2014-01-271-0/+48
| | |
| * | Convert the HKDF vectors to the NIST format.David Reid2014-01-272-0/+14
| | |
| * | Represent the hash vectors more cleanlyAlex Gaynor2014-01-271-5/+2
| | |
| * | Merge pull request #492 from public/py-thread-safeAlex Gaynor2014-01-241-0/+73
| |\ \ | | | | | | | | Python implementation of OpenSSL locking callback