Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | | * | Added MD5 test vectors from RFC 1321 (http://www.ietf.org/rfc/rfc1321.txt) | Paul Kehrer | 2013-10-01 | 1 | -0/+29 | |
| | | | | ||||||
| | | * | add ISO/IEC 10118-3 test vectors for RIPEMD160 and Whirlpool. | Paul Kehrer | 2013-10-01 | 3 | -0/+178 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These vectors have been reformatted from their original form to conform to the same format as the NIST SHA tests. * RIPEMD160 original vectors from the hash homepage - http://homes.esat.kuleuven.be/~bosselae/ripemd160.html * Whirlpool vectors from the hash homepage - http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html (yes that really is the homepage) | |||||
| | | * | SHA test vectors (byte oriented) from NIST | Paul Kehrer | 2013-09-30 | 21 | -0/+16281 | |
| | | | | | | | | | | | | | | | | | | | | Obtained from http://csrc.nist.gov/groups/STM/cavp/ with this link: http://csrc.nist.gov/groups/STM/cavp/documents/shs/shabytetestvectors.zip | |||||
| | * | | Removed name fro BlockCipher -- it's arbitrarily based on the format openssl ↵ | Alex Gaynor | 2013-10-17 | 1 | -10/+1 | |
| | | | | | | | | | | | | | | | | uses for *some* ciphers | |||||
| * | | | fix | Alex Gaynor | 2013-10-17 | 1 | -1/+3 | |
| | | | | ||||||
| * | | | Merge branch 'master' into refactor-cipher-names | Alex Gaynor | 2013-10-17 | 4 | -0/+25 | |
| |\| | | ||||||
| | * | | AES Counter support | Paul Kehrer | 2013-10-17 | 4 | -0/+25 | |
| | | | | | | | | | | | | | | | | | | | | * vectors from RFC 3686 * Documentation for the mode | |||||
| * | | | pep8 and py3k fixes | Alex Gaynor | 2013-10-16 | 2 | -4/+12 | |
| | | | | ||||||
| * | | | Refactor how cipher names are computed | Alex Gaynor | 2013-10-16 | 2 | -4/+4 | |
| |/ / | ||||||
* | | | 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 | 13 | -97/+12023 | |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 2 | -2/+5 | |
| | | | ||||||
| * | | 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 | 1 | -2/+2 | |
| | | | ||||||
| * | | Ported openssl vector tests | Alex Gaynor | 2013-10-16 | 4 | -82/+34 | |
| | | | ||||||
| * | | Missed file | Alex Gaynor | 2013-10-16 | 1 | -0/+40 | |
| | | | ||||||
| * | | Start of the great refactoring | Alex Gaynor | 2013-10-16 | 2 | -162/+74 | |
| | | | ||||||
| * | | 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 | 2 | -13/+10 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | 3 | -1/+182 | |
| | | | | | | | | | | | | | | | | | | | | | | | | * 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 | 2 | -22/+34 | |
| |/ | ||||||
| * | 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 | |
| | | ||||||
| * | 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 | |
| | ||||||
* | 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 | |
| | ||||||
* | Use an enum for determining BlockCipher operation | Donald Stufft | 2013-08-10 | 1 | -2/+4 | |
| | ||||||
* | Be consistent | Alex Gaynor | 2013-08-10 | 1 | -1/+1 | |
| | ||||||
* | Remove the padding from the BlockCipher API | Donald Stufft | 2013-08-10 | 2 | -21/+21 | |
| | ||||||
* | BlockCiphers should know their own name | Donald Stufft | 2013-08-10 | 1 | -0/+7 | |
| | | | | We normalize on CIPHER-KEYSIZE-MODE for the block cipher name. | |||||
* | Ciphers should know what size their keys are | Donald Stufft | 2013-08-10 | 1 | -0/+29 | |
| | ||||||
* | Ensure that a BlockCipher can only be used for one operation | Donald Stufft | 2013-08-10 | 1 | -0/+20 | |
| | | | | | | This prevents trying to call encrypt() and then decrypt() on a block cipher. It also enables finalize() to know what type of finalization to call. |