aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* add cbc, cfb, ofb support to CAST5 (aka CAST128) for openssl & ccPaul Kehrer2014-02-121-1/+52
| | | | fixes #393
* re-add CAST5 ECB support (OpenSSL & CC backends). fixes #417Paul Kehrer2014-02-122-1/+55
|
* update headers for the CAST5 vectorsPaul Kehrer2014-02-123-0/+3
|
* CAST5 CBC, OFB, CFB vectors made from the AES MMT test dataPaul Kehrer2014-02-123-0/+370
|
* flake8 fixAlex Gaynor2014-02-121-0/+1
|
* Added RSABackend to MultiBackendAlex Gaynor2014-02-121-3/+21
|
* Add RSAPrivateKey.generateAlex Stapleton2014-02-121-7/+13
|
* Merge pull request #580 from public/openssl-gen-rsa-keyDavid Reid2014-02-111-5/+52
|\ | | | | Generate RSA Keys with OpenSSL
| * Generate RSA KeysAlex Stapleton2014-02-111-5/+52
| |
* | Fixed error in totp test vectors.Ayrx2014-02-101-2/+2
| |
* | Updated vectors to include secret.Ayrx2014-02-103-0/+52
| |
* | Renamed vectors/otp to vectors/oathAyrx2014-02-092-0/+0
| |
* | Added test vectors for HOTP and TOTP algorithms.Ayrx2014-02-093-0/+252
|/
* pytest marks for RSAPaul Kehrer2014-02-081-1/+2
|
* Merge pull request #559 from public/rsa-keysPaul Kehrer2014-02-071-0/+173
|\ | | | | RSA keys
| * Make tests more explicit.Alex Stapleton2014-02-071-38/+89
| |
| * Check that public_exponent is oddAlex Stapleton2014-02-071-12/+20
| |
| * Use os.path.join to make pathsAlex Stapleton2014-02-061-1/+4
| |
| * More sanity checksAlex Stapleton2014-02-061-0/+12
| |
| * Test alias propertiesAlex Stapleton2014-02-051-0/+5
| |
| * Check p*q=n in the testsAlex Stapleton2014-02-051-0/+2
| |
| * Sanity check keys.Alex Stapleton2014-02-051-1/+35
| | | | | | | | Taken from RFC 3447.
| * 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-053-2/+382
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * PKCS #1 RSA test vector loaderAlex Stapleton2014-02-052-1/+375
| |
| * 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
| | |
| | * Remove more leftovers from rebase.David Reid2014-02-031-43/+2
| | |
| | * Add test cases for length checking and already finalized.David Reid2014-02-031-0/+85
| | |
| | * Remove load_hkdf_vectors which snuck in with a rebase.David Reid2014-02-031-30/+0
| | |
| | * 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-032-33/+22
| | |
| | * Break up hkdf_derive into hkdf_extract and hkdf_expand.David Reid2014-02-032-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 SHA256David Reid2014-02-031-83/+0
| | |
| | * Refactor HKDF support and provide vectors for tests.David Reid2014-02-035-2/+263
| | |
| | * 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.