aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Slightly clean up the OpenSSL bindingAlex Gaynor2013-09-131-23/+15
| | | | | - reduce the amount of state needed on the API instance - fixed import ordering
* Merge pull request #67 from reaperhulk/api-refactorAlex Gaynor2013-09-134-30/+93
|\ | | | | API refactor to separate cffi declarations
| * remove import function, rename attrs to upper in modulesPaul Kehrer2013-09-133-16/+9
| |
| * Various PR review fixesPaul Kehrer2013-09-135-67/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed some single quotes to double quotes * Moved the files in the cffi package back into the openssl package * evp, opensslv * Changed attrs from ALL CAPS * Fixed up docstrings * Stopped using fromlist=['*'] * No fallback on definition imports. You must supply includes, types, functions * Change includes, types, functions to be strings rather than lists for now * Removed teardown since we're not using it right now
| * API refactor to separate cffi declarationsPaul Kehrer2013-09-135-30/+104
|/ | | | | | | * Moved to structure similar to OpenTLS * api modified to load the cffi modules * cffi verify methods broken out * Jarret Raim and I pair programmed this
* Merge pull request #60 from dreid/ofb-iv-not-nonceDonald Stufft2013-09-124-15/+11
|\ | | | | OFB uses an IV instead of a nonce.
| * OFB uses an initialization vector instead a nonce.David Reid2013-09-111-6/+8
| |
| * ModeWithNonce no longer exists.David Reid2013-09-111-2/+0
| |
| * ModeWithNonce is no longer used.David Reid2013-09-111-4/+0
| |
| * OFB is specified as having an IV instead of a Nonce.David Reid2013-09-111-3/+3
| | | | | | https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Output_feedback_.28OFB.29
* | Merge pull request #62 from dstufft/test-pypyAlex Gaynor2013-09-121-0/+6
|\ \ | |/ |/| Enable testing on PyPy
| * Use the version of PyPy from PPAs to get PyPy 2.1Donald Stufft2013-09-121-0/+6
|/
* Merge pull request #59 from reaperhulk/cfb-supportDavid Reid2013-09-113-0/+69
|\ | | | | CFB support
| * add CFB to documentationPaul Kehrer2013-09-111-0/+13
| |
| * CFB supportPaul Kehrer2013-09-112-0/+56
|/ | | | | | | | | | 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
* Merge pull request #57 from reaperhulk/ofb-supportDonald Stufft2013-09-105-0/+73
|\ | | | | Output feedback mode support + test vectors (aes)
| * change OFB iv to nonce to reflect dstufft nomenclature pitchPaul Kehrer2013-09-104-11/+15
| | | | | | | | | | | | * Namely, we should try to call things IV if reuse leaks a small amount of data and nonce if reuse can result in a complete break. This can be somewhat ambiguous, but we'll track in #58
| * add output feedback mode support + test vectors (aes)Paul Kehrer2013-09-103-0/+69
| |
* | Merge pull request #56 from alex/docs-cleanupDonald Stufft2013-09-101-5/+9
|\ \ | |/ |/| Cleaned up the docs for ECB
| * Cleaned up the docs for ECBAlex Gaynor2013-09-101-5/+9
|/
* Merge pull request #53 from reaperhulk/ecb-support-im-sorryAlex Gaynor2013-09-107-5/+103
|\ | | | | ECB Support
| * address style on import + remove a tox dependency (in setup.py already)Paul Kehrer2013-09-102-1/+1
| |
| * move abc, inline introspect method, use six for abcsPaul Kehrer2013-09-107-17/+14
| | | | | | | | | | | | | | * abc moved to cryptography.primitive.interfaces * six added to dependencies * six used to have py2x/py3x compatible abc * nonce abc removed for now
| * modify modes to use abc so api can determine what attribute to callPaul Kehrer2013-09-106-12/+36
| | | | | | | | | | | | | | * 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 commentsPaul Kehrer2013-09-103-4/+4
| |
| * add get_iv_or_nonce() methods to replace _get_iv() on apiPaul Kehrer2013-09-103-18/+13
| |
| * remove unneeded init in ECB class, add warning to docs for ECB modePaul Kehrer2013-09-102-3/+1
| |
| * add ECB support to create_block_cipher_contextPaul Kehrer2013-09-102-1/+19
| | | | | | | | | | * 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 + testsPaul Kehrer2013-09-103-0/+66
|/ | | | | * 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-changesAlex Gaynor2013-09-101-22/+30
|\ | | | | Changes to parameterize_encrypt_test to support other NIST vectors
| * changes to parameterize_encrypt_test to support other NIST vectorsPaul Kehrer2013-09-101-22/+30
| | | | | | | | | | * ECB has no IV so we need to be able to pass params rather than have them hardcoded in the method
* | Merge pull request #54 from alex/document-contributingHynek Schlawack2013-09-093-38/+91
|\ \ | | | | | | More fully document the contribution process
| * | Captitalize GH properlyAlex Gaynor2013-09-091-2/+2
| | |
| * | More fully document the contribution process, move most of the details fromAlex Gaynor2013-09-093-38/+91
|/ / | | | | | | CONTRIBUTING.rst to sphinx.
* | Merge pull request #52 from alex/3des-vectorsDonald Stufft2013-09-0988-0/+48004
|\ \ | |/ |/| Aded the 3DES vectors. Refs #51.
| * Aded the 3DES vectors. Refs #51.Alex Gaynor2013-09-0988-0/+48004
|/
* Merge pull request #50 from alex/simplify-nist-testsDonald Stufft2013-09-091-150/+31
|\ | | | | Simplified the NIST tests and reduced duplication
| * Simplified the NIST tests and reduced duplicationAlex Gaynor2013-09-091-150/+31
|/
* Merge pull request #49 from reaperhulk/masterAlex Gaynor2013-09-091-0/+1
|\ | | | | Update authors
| * update authorsPaul Kehrer2013-09-091-0/+1
|/
* Merge pull request #48 from reaperhulk/masterAlex Gaynor2013-09-093-1/+23
|\ | | | | Add OpenSSL Version Text Method
| * Update docstring to pass alex8 lintingPaul Kehrer2013-09-092-2/+4
| |
| * openssl_version_text now calls startswith rather than findPaul Kehrer2013-09-091-1/+1
| |
| * Accurate friendly string name example textPaul Kehrer2013-09-091-1/+1
| |
| * ascii decode on openssl_version_text + doc string improvementsPaul Kehrer2013-09-092-2/+12
| |
| * Add method to bindings to get OPENSSL_VERSION_TEXTPaul Kehrer2013-09-092-0/+10
| | | | | | | | | | | | | | * 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)
| * Fix issue mixing %s and format for ValueError in AESPaul Kehrer2013-09-091-1/+1
|/
* Merge pull request #28 from alex/simple-symmetric-encryptionHynek Schlawack2013-09-0713-5/+530
|\ | | | | [WIP] initial implementation of symmetric encryption
| * This isn't a thingAlex Gaynor2013-08-311-1/+0
| |
| * remove this duplicateAlex Gaynor2013-08-311-4/+0
| |