aboutsummaryrefslogtreecommitdiffstats
path: root/tests/primitives
Commit message (Collapse)AuthorAgeFilesLines
* Move primtives into a hazmat packageDonald Stufft2013-10-28234-550146/+0
|
* AES GCM vectors from NISTPaul Kehrer2013-10-246-0/+396936
| | | | * http://csrc.nist.gov/groups/STM/cavp/documents/mac/gcmtestvectors.zip
* split backend up (refs #170)Paul Kehrer2013-10-224-26/+27
| | | | | | | | * 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
* more backend renames from merged commitsPaul Kehrer2013-10-221-8/+8
|
* Merge branch 'master' into api-to-backend-in-one-easy-stepPaul Kehrer2013-10-221-0/+22
|\ | | | | | | | | | | | | | | | | | | | | * master: Make use of currentmodule to maybe reduce redundant module definitions and also get source links. Enable the new read the docs theme, it's pretty. use is for identical object comparison add gcm constants and EVP_CIPHER_CTX_ctrl macro md5 is 128-bit. The person responsible for this mistake has been shot add test to verify api is being copied in hash When copying a hash, pass the api through to the new object
| * use is for identical object comparisonPaul Kehrer2013-10-221-1/+1
| |
| * add test to verify api is being copied in hashPaul Kehrer2013-10-221-0/+11
| |
| * When copying a hash, pass the api through to the new objectPaul Kehrer2013-10-221-0/+11
| |
* | the great api -> backend renamePaul Kehrer2013-10-227-60/+60
|/
* Merge pull request #155 from reaperhulk/hmac-vectorsDavid Reid2013-10-227-0/+281
|\ | | | | HMAC test vectors
| * add note on hmac truncation vectorsPaul Kehrer2013-10-223-0/+3
| |
| * HMAC test vectors from RFC 2202, 2286, and 4231Paul Kehrer2013-10-207-0/+278
| |
* | fixes #148 + test casePaul Kehrer2013-10-221-0/+4
| |
* | Merge pull request #112 from reaperhulk/block-cipher-decryptDavid Reid2013-10-222-25/+40
|\ \ | | | | | | Block Cipher Decryption
| * | verify that encryptor/decryptor returns CipherContext compliant interfacePaul Kehrer2013-10-221-2/+3
| | |
| * | Merge branch 'master' into block-cipher-decryptPaul Kehrer2013-10-212-5/+15
| |\ \
| * | | address review commentsPaul Kehrer2013-10-211-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | * inline some methods * refactor enc/dec classes * modify docs
| * | | block cipher decryption supportPaul Kehrer2013-10-212-25/+38
| | |/ | |/| | | | | | | | | | | | | This is a squash of previous commits plus new ones. Ran into a pile of conflicts during the rebase and decided this was an easier way to retain a sane commit history
* | | Merge branch 'master' into triple-desAlex Gaynor2013-10-213-3/+17
|\ \ \
| * \ \ Merge pull request #147 from reaperhulk/hash-improvementsAlex Gaynor2013-10-212-1/+14
| |\ \ \ | | | | | | | | | | Provide data to hash constructor + reject unicode ala hashlib
| | * | | Allow data to be passed in the constructor & reject unicode ala hashlibPaul Kehrer2013-10-192-1/+14
| | |/ /
| * | / Enable all the flake8Alex Gaynor2013-10-211-2/+3
| | |/ | |/|
* | | Tests for all the keysizesAlex Gaynor2013-10-211-1/+16
| | |
* | | Removed the interleaved onesAlex Gaynor2013-10-211-48/+4
| | |
* | | cfb testsAlex Gaynor2013-10-211-1/+27
| | |
* | | FuckAlex Gaynor2013-10-211-3/+3
| | |
* | | py3kAlex Gaynor2013-10-211-1/+1
| | |
* | | These are also interleavedAlex Gaynor2013-10-211-16/+0
| | |
* | | Remove this, it's not really CBCAlex Gaynor2013-10-211-16/+0
| | |
* | | fixAlex Gaynor2013-10-211-1/+1
| | |
* | | fixesAlex Gaynor2013-10-211-10/+14
| | |
* | | KAT tests for 3des ofbAlex Gaynor2013-10-211-0/+24
| | |
* | | No need for another test functionAlex Gaynor2013-10-211-9/+0
| | |
* | | TripleDES OFB MMT testsAlex Gaynor2013-10-211-6/+34
| | |
* | | pep8ification, stub classes for OFB and CFBAlex Gaynor2013-10-211-3/+17
| | |
* | | Initial working stateAlex Gaynor2013-10-211-14/+20
| | |
* | | Merge branch 'master' into triple-desAlex Gaynor2013-10-2134-15/+16823
|\| |
| * | Merge branch 'master' into refactor-cipher-namesAlex Gaynor2013-10-2129-11/+16784
| |\| | | | | | | | | | | | | Conflicts: cryptography/bindings/openssl/api.py
| | * MD5 support + documentation for all hashesPaul Kehrer2013-10-192-0/+23
| | |
| | * Merge pull request #128 from reaperhulk/hash-saga-whirlpoolDonald Stufft2013-10-192-0/+32
| | |\ | | | | | | | | Hash Saga Part 6 (Whirlpool support)
| | | * Whirlpool supportPaul Kehrer2013-10-182-0/+32
| | | |
| | * | Only execute only_if if we need toDonald Stufft2013-10-191-6/+6
| | | |
| | * | Unaligned block encryption testPaul Kehrer2013-10-191-0/+11
| | |/ | | | | | | | | | | | | | | | | | | This test verifies that the underlying buffer is being sized correctly by passing data into the encryption function without aligning it to the block size of the cipher. This ensures that we will get a larger return value than the initial argument from our second encrypt call.
| | * ripemd160 support + long string hash testPaul Kehrer2013-10-184-2/+67
| | | | | | | | | | | | | | | | | | * Note that the long string hash test for RIPEMD160 adds a vector in the test. You can verify this vector (for b"a" * 1000000) on the RIPE homepage: http://homes.esat.kuleuven.be/~bosselae/ripemd160.html
| | * SHA-2 family supportPaul Kehrer2013-10-182-0/+96
| | |
| | * change api.supports_hash to take a hash class rather than a strPaul Kehrer2013-10-182-2/+2
| | | | | | | | | | | | | | | | | | * This change means hash class names will be byte strings and we no longer need to encode to ascii on hashobject.name in create_hash_context
| | * remove unneeded lambdas from testsPaul Kehrer2013-10-183-10/+10
| | |
| | * Hash Saga Part 3 - API changes + SHA1 support + testsPaul Kehrer2013-10-184-1/+141
| | |
| | * Merge pull request #80 from reaperhulk/evp-mdDavid Reid2013-10-1824-0/+16415
| | |\ | | | | | | | | MD test vectors
| | | * remove raw whirlpool vectors (formatted vectors already committed)Paul Kehrer2013-10-181-73/+0
| | | |