aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
Commit message (Collapse)AuthorAgeFilesLines
...
| * rand bindings for openssl (refs #77)Paul Kehrer2013-10-052-0/+38
| | | | | | | | | | | | These bindings should be used with care as there are many opportunities to shoot yourself in the foot. Take special care to re-seed on process fork and for the love of god don't use DUAL_EC_DRBG
| * jokers to the left, pointers to the rightPaul Kehrer2013-10-051-1/+1
| |
| * too many rsas makes me rsa blindPaul Kehrer2013-10-051-1/+1
| |
| * remove local variable names from function declarationsPaul Kehrer2013-10-051-3/+3
| |
| * Bindings for OpenSSL's RSA. Refs #77Paul Kehrer2013-10-052-0/+32
| |
| * Merge branch 'master' into bind-dhAlex Gaynor2013-10-044-1/+60
| |\ | | | | | | | | | | | | Conflicts: cryptography/bindings/openssl/api.py
| | * Merge branch 'master' into bind-dsaAlex Gaynor2013-10-043-1/+29
| | |\ | | | | | | | | | | | | | | | | Conflicts: cryptography/bindings/openssl/api.py
| | | * Merge pull request #88 from pyca/bind-cryptoDonald Stufft2013-10-042-0/+28
| | | |\ | | | | | | | | | | Bind OpenSSL's crypto. Refs #77
| | | | * Bind OpenSSL's crypto. Refs #77Alex Gaynor2013-10-032-0/+28
| | | | |
| | | * | Switch all repositories over to the new locationDonald Stufft2013-10-041-1/+1
| | | |/
| | * / Added bindings for OpenSSL's DSA. Refs #77.Alex Gaynor2013-10-032-0/+31
| | |/
| * / Bind OpenSSL's DH. Refs #77Alex Gaynor2013-10-032-0/+29
| |/
| * Use a None default so composition is easierAlex Gaynor2013-10-031-1/+5
| |
| * Make default_api privateAlex Gaynor2013-10-032-3/+3
| |
| * Explicitly pass around the API, and run all tests under all available APIsAlex Gaynor2013-10-032-5/+22
| |
| * Remove this, it properly belongs to ASN1, and that's for a seperate PRAlex Gaynor2013-10-021-4/+0
| |
| * Thsi is a macroAlex Gaynor2013-10-021-2/+1
| |
| * Fixes to match teh C headersAlex Gaynor2013-10-021-2/+6
| |
| * Merge branch 'master' into bind-bignumAlex Gaynor2013-10-023-4/+25
| |\
| | * Merge pull request #78 from alex/check-cffiDonald Stufft2013-10-023-4/+22
| | |\ | | | | | | | | Be stricter in type checking the C prototypes
| | | * Added an explanatory commentAlex Gaynor2013-10-021-0/+8
| | | |
| | | * Move to a saner approachAlex Gaynor2013-10-023-13/+13
| | | |
| | | * Rewrite this commentAlex Gaynor2013-10-011-1/+1
| | | |
| | | * Try without thisAlex Gaynor2013-09-301-4/+2
| | | |
| | | * Give upAlex Gaynor2013-09-301-8/+1
| | | |
| | | * Everything but shut some offAlex Gaynor2013-09-301-1/+8
| | | |
| | | * A flag too farAlex Gaynor2013-09-301-1/+1
| | | |
| | | * only pass these on OS XAlex Gaynor2013-09-301-9/+12
| | | |
| | | * Some commentsAlex Gaynor2013-09-301-1/+6
| | | |
| | | * Different flagsAlex Gaynor2013-09-301-1/+4
| | | |
| | | * Do this alwaysAlex Gaynor2013-09-301-1/+2
| | | |
| | * | Added a EVP_CIPHER_CTX_init() callPaul Kehrer2013-09-302-0/+3
| | |/ | | | | | | | | | | | | | | | | | | * In OpenSSL when you alloc an EVP_CIPHER_CTX you must then init it (which just zeroes the allocated memory). If you do not then it is possible for things to kerplode when passing the uninitialized context to EVP_EncryptInit_ex(). This patch fixes that.
| * / Added bindings for OpenSSL's bn.hAlex Gaynor2013-09-302-0/+36
| |/
| * Make the lib and ffi public for the OpenSSL binding and document themAlex Gaynor2013-09-301-25/+25
| |
| * Corrected the copyrightAlex Gaynor2013-09-291-1/+1
| |
| * Dedent the C declarations to give us more space to work withAlex Gaynor2013-09-282-19/+21
| |
| * Inline this function, it didn't do muchAlex Gaynor2013-09-131-9/+3
| |
| * Slightly clean up the OpenSSL bindingAlex Gaynor2013-09-131-23/+15
| | | | | | | | | | - reduce the amount of state needed on the API instance - fixed import ordering
| * 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-134-30/+103
| | | | | | | | | | | | | | * 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
| * 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
| * CFB supportPaul Kehrer2013-09-111-0/+9
| | | | | | | | | | | | | | | | | | | | 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
| * change OFB iv to nonce to reflect dstufft nomenclature pitchPaul Kehrer2013-09-103-3/+9
| | | | | | | | | | | | * 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-101-0/+9
| |
| * address style on import + remove a tox dependency (in setup.py already)Paul Kehrer2013-09-101-0/+1
| |
| * move abc, inline introspect method, use six for abcsPaul Kehrer2013-09-105-17/+11
| | | | | | | | | | | | | | * 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-105-8/+35
| | | | | | | | | | | | | | * 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