Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | | Refactor how cipher names are computed | Alex Gaynor | 2013-10-16 | 3 | -5/+5 | |
| |/ / | ||||||
* | | | Get the tests running | Alex Gaynor | 2013-10-16 | 1 | -1/+11 | |
| | | | ||||||
* | | | Port this test except it doesn't work because of plaintext and ciphertext ↵ | Alex Gaynor | 2013-10-16 | 1 | -12/+6 | |
| | | | | | | | | | | | | naming, need to make that flexible | |||||
* | | | Merge branch 'master' into triple-des | Alex Gaynor | 2013-10-16 | 17 | -226/+12352 | |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Also moved most of the tests to the new format except for one which doesn't yet have an obvious translation Conflicts: cryptography/primitives/block/ciphers.py tests/primitives/test_nist.py | |||||
| * | | flake8 fixes | Alex Gaynor | 2013-10-16 | 3 | -3/+6 | |
| | | | ||||||
| * | | Unit test the test harness | Alex Gaynor | 2013-10-16 | 1 | -0/+14 | |
| | | | ||||||
| * | | Yolo | Alex Gaynor | 2013-10-16 | 1 | -1/+1 | |
| | | | ||||||
| * | | Rewrite to avoid capitalization issues | Alex Gaynor | 2013-10-16 | 1 | -1/+1 | |
| | | | ||||||
| * | | Move around the skip logic | Alex Gaynor | 2013-10-16 | 3 | -21/+26 | |
| | | | ||||||
| * | | Consolidate this list | Alex Gaynor | 2013-10-16 | 2 | -4/+4 | |
| | | | ||||||
| * | | Ported openssl vector tests | Alex Gaynor | 2013-10-16 | 6 | -141/+88 | |
| | | | ||||||
| * | | Missed file | Alex Gaynor | 2013-10-16 | 1 | -0/+40 | |
| | | | ||||||
| * | | Start of the great refactoring | Alex Gaynor | 2013-10-16 | 4 | -310/+218 | |
| | | | ||||||
| * | | use the pragmas consistently. | Paul Kehrer | 2013-10-15 | 1 | -2/+2 | |
| | | | ||||||
| * | | add pragma: no cover to handle coverage in the tests for the moment | Paul Kehrer | 2013-10-15 | 2 | -4/+4 | |
| | | | ||||||
| * | | remove openssl api dependency in test_openssl_vectors | Paul Kehrer | 2013-10-06 | 2 | -12/+11 | |
| | | | | | | | | | | | | Update some single quotes to double for consistency | |||||
| * | | rebase and modify to support some changed behaviors | Paul Kehrer | 2013-10-06 | 3 | -30/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update code to reflect new api object (ffi and lib are no longer private) * tests updated to take an api object * skipif marks removed for now as we need to use the api passed to each individual test. skip testing done inside the test * changed name of supports in api to supports_cipher (future PRs will contain supports_hash) | |||||
| * | | Camellia block cipher support | Paul Kehrer | 2013-10-06 | 4 | -1/+200 | |
| | | | | | | | | | | | | | | | | | | | | | | | | * Tests for CBC, OFB, CFB, and ECB * Tests will be automatically skipped if camellia support is not present in your OpenSSL library (e.g. OS X 10.8 with default OpenSSL) * Test for unsupported cipher in create_block_cipher_context * Docs for the cipher | |||||
| * | | Use a None default so composition is easier | Alex Gaynor | 2013-10-03 | 1 | -0/+7 | |
| | | | ||||||
| * | | Explicitly pass around the API, and run all tests under all available APIs | Alex Gaynor | 2013-10-03 | 3 | -22/+39 | |
| |/ | ||||||
| * | simplify cryptrec loader, improve comments | Paul Kehrer | 2013-09-27 | 1 | -27/+17 | |
| | | ||||||
| * | remove distinction between encrypt/decrypt in the openssl loader | Paul Kehrer | 2013-09-24 | 2 | -124/+13 | |
| | | | | | | | | | | | | | | * This was done because all the OpenSSL test vectors we're currently using are identical between encrypt/decrypt. * Removed a bunch of unneeded unit tests that checked the encrypt/decrypt vectors | |||||
| * | simplify and annotate loaders based on review feedback | Paul Kehrer | 2013-09-23 | 1 | -14/+17 | |
| | | ||||||
| * | crazy pep8 contortions | Paul Kehrer | 2013-09-15 | 1 | -25/+42 | |
| | | ||||||
| * | sort the cryptrec loader dict's items to test reliably | Paul Kehrer | 2013-09-15 | 1 | -1/+1 | |
| | | ||||||
| * | add cryptrec and openssl test vector loaders + tests | Paul Kehrer | 2013-09-15 | 2 | -2/+304 | |
| | | ||||||
| * | Camellia test vectors | Paul Kehrer | 2013-09-14 | 6 | -0/+11687 | |
| | | | | | | | | | | | | * ECB tests come from the NTT Camellia pages (as linked to by the latest [CRYPTREC](http://www.cryptrec.go.jp/english/method.html)). * CFB, OFB, CBC tests from OpenSSL evptests | |||||
| * | CFB support | Paul Kehrer | 2013-09-11 | 1 | -0/+47 | |
| | | | | | | | | | | | | | | | | | | | | This requires a bit of explanation. OpenSSL has methods that implement standard CFB, 1-bit CFB (cfb1), and 8-bit CFB (cfb8). Unfortunately, while old (read: 0.9.7) versions of OpenSSL appear to test these variants, newer versions have a comment stating that cfb{1,8} are unsupported. Accordingly, I've backed out any support for the variants for now. We can add it back into the CFB class if and when we gain a backend that supports arbitrary s for 1 <= s <= block_size | |||||
| * | add output feedback mode support + test vectors (aes) | Paul Kehrer | 2013-09-10 | 1 | -0/+47 | |
| | | ||||||
| * | modify modes to use abc so api can determine what attribute to call | Paul Kehrer | 2013-09-10 | 1 | -4/+1 | |
| | | | | | | | | | | | | | | * Due to a circular dependency issue I had to put the abcs in cryptography.primitives.abc.block.modes * The ABCs look like they do because that is the form that is compatible with 2.x and 3.x | |||||
| * | rename get_null_for_ecb to get_iv_for_ecb per alex's comments | Paul Kehrer | 2013-09-10 | 1 | -2/+2 | |
| | | ||||||
| * | add get_iv_or_nonce() methods to replace _get_iv() on api | Paul Kehrer | 2013-09-10 | 1 | -5/+2 | |
| | | ||||||
| * | add ECB support to create_block_cipher_context | Paul Kehrer | 2013-09-10 | 1 | -0/+6 | |
| | | | | | | | | | | * This is a basic refactor to support ECB and CBC mode in this method. We can use this as a starting point to discuss a better solution. | |||||
| * | Add ECB class + docs + tests | Paul Kehrer | 2013-09-10 | 1 | -0/+47 | |
| | | | | | | | | | | * Slightly refactors test_nist to allow fetching of data that has no IV * Does not modify create_block_cipher_context (next commit) | |||||
* | | consistency | Alex Gaynor | 2013-09-10 | 1 | -5/+5 | |
| | | ||||||
* | | Merge branch 'master' into triple-des | Alex Gaynor | 2013-09-10 | 1 | -2/+2 | |
|\| | | | | | | | | | Conflicts: tests/primitives/test_nist.py | |||||
| * | Merge pull request #55 from reaperhulk/parameterize-encrypt-changes | Alex Gaynor | 2013-09-10 | 1 | -22/+30 | |
| |\ | | | | | | | Changes to parameterize_encrypt_test to support other NIST vectors | |||||
| | * | changes to parameterize_encrypt_test to support other NIST vectors | Paul Kehrer | 2013-09-10 | 1 | -22/+30 | |
| | | | | | | | | | | | | | | | * ECB has no IV so we need to be able to pass params rather than have them hardcoded in the method | |||||
| * | | Aded the 3DES vectors. Refs #51. | Alex Gaynor | 2013-09-09 | 88 | -0/+48004 | |
| |/ | ||||||
* | | Get tests running (fail miserably) | Alex Gaynor | 2013-09-10 | 1 | -48/+109 | |
| | | ||||||
* | | Write out the initial test cases, they don't even fail properly because the ↵ | Alex Gaynor | 2013-09-09 | 1 | -0/+40 | |
| | | | | | | | | 3DES cases look different from the AES ones | |||||
* | | Iinital work on 3DES. No tests and no implementation yet. | Alex Gaynor | 2013-09-09 | 88 | -0/+48004 | |
|/ | ||||||
* | Simplified the NIST tests and reduced duplication | Alex Gaynor | 2013-09-09 | 1 | -150/+31 | |
| | ||||||
* | Update docstring to pass alex8 linting | Paul Kehrer | 2013-09-09 | 1 | -1/+2 | |
| | ||||||
* | openssl_version_text now calls startswith rather than find | Paul Kehrer | 2013-09-09 | 1 | -1/+1 | |
| | ||||||
* | ascii decode on openssl_version_text + doc string improvements | Paul Kehrer | 2013-09-09 | 1 | -0/+7 | |
| | ||||||
* | Add method to bindings to get OPENSSL_VERSION_TEXT | Paul Kehrer | 2013-09-09 | 1 | -0/+3 | |
| | | | | | | | * This allows you to check that you're binding against the expected version of OpenSSL * Test is pretty basic (just checks to see that the string starts with OpenSSL) | |||||
* | Add mandatory headers to files touched by this branch | Hynek Schlawack | 2013-08-11 | 3 | -0/+7 | |
| | ||||||
* | Fixed wrong test | Alex Gaynor | 2013-08-10 | 1 | -1/+1 | |
| | ||||||
* | Ensure that AES gets a proper key size | Donald Stufft | 2013-08-10 | 1 | -0/+4 | |
| |