aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_ciphers.py
Commit message (Collapse)AuthorAgeFilesLines
* Add clearer message when key type is not bytes (#4289)Vladyslav Moisieienkov2018-06-201-0/+32
| | | | | | | | | | | | * Add clearer message in Cipher when key is not bytes * Change location of key type check to verify_key_size function * Replace formated error message with static * Add key type check tests to all ciphers constructors * Change key type error message to lowercase
* Add support for AES XTS (#3900)Paul Kehrer2017-10-011-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | * Add support for AES XTS We drop the non-byte aligned test vectors because according to NIST http://csrc.nist.gov/groups/STM/cavp/documents/aes/XTSVS.pdf "An implementation may support a data unit length that is not a multiple of 8 bits." OpenSSL does not support this, so we can't use those test vectors. * fix docs and pep8 * docs fix * the spellchecker is so frustrating * add note about AES 192 for XTS (it's not supported) * docs work * enforce key length on ECB mode in AES as well (thanks XTS) * a few more words about why we exclude some test vectors for XTS
* Bump the minimum PyPy/cffi version and simplify as a result (#3585)Alex Gaynor2017-05-231-48/+0
| | | | | | | | * Bump the minimum PyPy/cffi version and simplify as a result * unused imports * grumble, fix
* Fixed #3533 -- made GCM mode object immutable (#3553)Alex Gaynor2017-05-201-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | * Fixed #3533 -- made GCM mode object immutable * flake8 * Fix for older openssl * fix * fix * sigh, fix * fixed * dropped negation * computers are bad * A test * This implements an interface
* Don't compare cffi version using strings (#3524)Alex Gaynor2017-04-291-3/+2
|
* add support for update_into on CipherContext (#3190)Paul Kehrer2017-02-161-3/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add support for update_into on CipherContext This allows you to provide your own buffer (like recv_into) to improve performance when repeatedly calling encrypt/decrypt on large payloads. * another skip_if * more skip_if complexity * maybe do this right * correct number of args * coverage for the coverage gods * add a cffi minimum test tox target and travis builder This tests against macOS so we capture some commoncrypto branches * extra arg * need to actually install py35 * fix * coverage for GCM decrypt in CC * no longer relevant * 1.8 now * pep8 * dramatically simplify * update docs * remove unneeded test * changelog entry * test improvements * coverage fix * add some comments to example * move the comments to their own line * fix and move comment
* Update the license header for every source file, as well as the documentation.Alex Gaynor2014-11-161-12/+3
| | | | Fixes #1209
* add SEED docs, tests, small fixesPaul Kehrer2014-04-091-1/+11
|
* Update tests and raise sitesAlex Stapleton2014-03-271-2/+4
|
* Fixed #809 -- switch back to always using UnsupportedAlgorithmAlex Gaynor2014-03-271-2/+2
|
* import order fixes for future automated checkingPaul Kehrer2014-03-191-1/+1
|
* Tiny style changes to some importsAlex Gaynor2014-03-161-2/+0
|
* Style nitpickAyrx2014-03-161-1/+2
|
* Added backend check to cipher primitivesAyrx2014-03-161-0/+11
|
* test IDEA key_size properlyPaul Kehrer2014-03-151-1/+11
|
* re-add CAST5 ECB support (OpenSSL & CC backends). fixes #417Paul Kehrer2014-02-121-1/+14
|
* remove CAST5 for first releasePaul Kehrer2014-01-071-14/+1
|
* add ARC4 keysize testingPaul Kehrer2013-11-071-1/+20
|
* block cipher renamePaul Kehrer2013-11-061-1/+1
| | | | | | * block renamed to ciphers * ciphers renamed to algorithms * base moved into algorithms
* CAST5 support + ECB vectorsPaul Kehrer2013-10-311-1/+14
|
* add blowfish cipher key_size testsPaul Kehrer2013-10-311-1/+14
|
* Move primtives into a hazmat packageDonald Stufft2013-10-281-0/+67