Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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) | ||||
* | 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 |
|/ | |||||
* | 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 |
| | |||||
* | 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. | ||||
* | Some apache license headers (we need a pyflkaes check for thsi) | Alex Gaynor | 2013-08-10 | 4 | -0/+52 |
| | |||||
* | Removed duplicate tests, added tests + fix for use after finalize | Alex Gaynor | 2013-08-09 | 1 | -15/+9 |
| | |||||
* | Use a test file with shorter keys so that all lines match our coding standard | Alex Gaynor | 2013-08-09 | 1 | -32/+56 |
| | |||||
* | Get stuff working on py3k for real | Alex Gaynor | 2013-08-09 | 3 | -61/+65 |
| | |||||
* | Steps to get this running on py32 and py33 again | Alex Gaynor | 2013-08-09 | 1 | -2/+2 |
| | |||||
* | Properly decode plaintext before encrypting it | Donald Stufft | 2013-08-09 | 2 | -16/+32 |
| | |||||
* | Use the NIST MMT vectors to test AES-CBC w/ no padding | Donald Stufft | 2013-08-09 | 19 | -13/+2348 |
| | |||||
* | Reduce code duplication | Alex Gaynor | 2013-08-08 | 1 | -80/+19 |
| | |||||
* | Style | Alex Gaynor | 2013-08-08 | 1 | -2/+1 |
| | |||||
* | Use the NIST KAT vectors to test AES-CBC w/ no padding | Donald Stufft | 2013-08-09 | 72 | -0/+73644 |
| | |||||
* | Tests now running against the NIST vectors | Alex Gaynor | 2013-08-08 | 2 | -8/+5 |
| | |||||
* | Merge branch 'master' into simple-symmetric-encryption | Alex Gaynor | 2013-08-08 | 3 | -0/+312 |
|\ | |||||
| * | Merge pull request #29 from dstufft/nist-vector-file-utilities | Alex Gaynor | 2013-08-08 | 3 | -0/+312 |
| |\ | | | | | | | Add a test utility functions to read & process NIST vector files | ||||
| | * | Add a test utility functions to read & process NIST vector files | Donald Stufft | 2013-08-09 | 3 | -0/+312 |
| | | | |||||
* | | | Started stubbing stuff out, including a simple test, now is the part where we | Alex Gaynor | 2013-08-08 | 1 | -0/+23 |
|/ / | | | | | | | write some actual cryptographic software. So yeah. | ||||
* / | Refactor into latest design decision | Hynek Schlawack | 2013-08-08 | 3 | -6/+19 |
|/ | | | | | C is an implementation detail of the wrapper API, so we go with 'bindings'. Also create/fix some namespaces. | ||||
* | Less code, more tests. | Alex Gaynor | 2013-08-07 | 2 | -0/+6 |