aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bindings/test_openssl.py
Commit message (Collapse)AuthorAgeFilesLines
* Move the bindings into the hazmat moduleDonald Stufft2013-10-281-41/+0
|
* Move primtives into a hazmat packageDonald Stufft2013-10-281-2/+2
|
* split backend up (refs #170)Paul Kehrer2013-10-221-2/+2
| | | | | | | | * Moves cipher methods into a Ciphers class and hash methods to a Hashes class and makes them available inside Backend as pluralized attributes. * Shortened many of the methods since their purpose is now defined by their container class
* the great api -> backend renamePaul Kehrer2013-10-221-6/+6
|
* Up our coverageAlex Gaynor2013-10-161-0/+8
|
* Refactor how cipher names are computedAlex Gaynor2013-10-161-1/+1
|
* rebase and modify to support some changed behaviorsPaul Kehrer2013-10-061-17/+2
| | | | | | | | | * 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 supportPaul Kehrer2013-10-061-0/+18
| | | | | | | | * 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
* modify modes to use abc so api can determine what attribute to callPaul Kehrer2013-09-101-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 commentsPaul Kehrer2013-09-101-2/+2
|
* add get_iv_or_nonce() methods to replace _get_iv() on apiPaul Kehrer2013-09-101-5/+2
|
* add ECB support to create_block_cipher_contextPaul Kehrer2013-09-101-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.
* Update docstring to pass alex8 lintingPaul Kehrer2013-09-091-1/+2
|
* openssl_version_text now calls startswith rather than findPaul Kehrer2013-09-091-1/+1
|
* ascii decode on openssl_version_text + doc string improvementsPaul Kehrer2013-09-091-0/+7
|
* Add method to bindings to get OPENSSL_VERSION_TEXTPaul Kehrer2013-09-091-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)
* Refactor into latest design decisionHynek Schlawack2013-08-081-0/+19
C is an implementation detail of the wrapper API, so we go with 'bindings'. Also create/fix some namespaces.