aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Moved the cffi attributes on the OpenSSL backend to be class attributes, so ↵Alex Gaynor2013-11-041-12/+24
| | | | | | | | | | | | | | | | they're shared between all isntances
* | | | Replaced an assertion in the OpenSSL backend with a proper exceptionAlex Gaynor2013-11-031-1/+3
|/ / /
* | | Changed excpetion name based on feedback from dreidAlex Gaynor2013-11-022-3/+3
| | |
* | | pep8Alex Gaynor2013-11-021-0/+1
| | |
* | | Document and implement the public API for when the backend doesn't support ↵Alex Gaynor2013-11-022-3/+22
| |/ |/| | | | | the requested algorithm
* | Enforce HMAC taking an instance of HashAlgorithmDavid Reid2013-11-011-0/+2
| |
* | Remove unused import.David Reid2013-11-011-2/+0
| |
* | Strip down the HMAC interface to be HashContext.David Reid2013-11-011-21/+13
| |
* | Merge pull request #200 from dreid/primitive-hashesAlex Gaynor2013-11-012-27/+78
|\ \ | | | | | | [WIP] Reduce the surface of the primitive hash interface.
| * | Inline _copy_ctxDavid Reid2013-10-311-4/+1
| | |
| * | Enforce that Hash takes a HashAlgorithm instance.David Reid2013-10-311-0/+2
| | |
| * | Reduce the surface of the primitive hash interface. Add more interfaces, ↵David Reid2013-10-302-24/+76
| |/ | | | | | | drop direct hashlib compatibility.
* | disable support for CAST5 modes excepting ECBPaul Kehrer2013-10-311-6/+5
| |
* | CAST5 support + ECB vectorsPaul Kehrer2013-10-312-1/+27
| |
* | blowfish support + test vectorsPaul Kehrer2013-10-312-1/+27
|/ | | | | Vectors sourced from https://www.schneier.com/code/vectors.txt but reformatted to comply with our NIST loader
* set the key length when initializing a cipher contextPaul Kehrer2013-10-292-1/+16
| | | | This is required for variable key length ciphers like CAST5 and blowfish
* Perform this comparison in a constan ttime fashionAlex Gaynor2013-10-291-2/+5
|
* raise an error if you unicodeAlex Gaynor2013-10-291-0/+6
|
* Optimize + test casesAlex Gaynor2013-10-291-8/+14
|
* Removed helperAlex Gaynor2013-10-291-8/+0
|
* Fix the naming of these classesAlex Gaynor2013-10-291-6/+6
|
* Added a PaddingContext interfaceAlex Gaynor2013-10-292-0/+18
|
* Reference a comment for thisAlex Gaynor2013-10-291-2/+2
|
* Merge branch 'master' into pkcs7-paddingAlex Gaynor2013-10-292-0/+99
|\
| * change type of exception raised, fix docs typoPaul Kehrer2013-10-281-1/+1
| |
| * make hmac (mostly) compatible with stdlib hmacPaul Kehrer2013-10-281-10/+14
| |
| * address initial review commentsPaul Kehrer2013-10-281-2/+1
| |
| * cleanup context after finalizingPaul Kehrer2013-10-281-0/+1
| |
| * HMAC supportPaul Kehrer2013-10-282-0/+95
| | | | | | | | | | | | Conflicts: docs/primitives/index.rst tests/hazmat/primitives/utils.py
* | Initial implementation with tests, docs to followAlex Gaynor2013-10-291-0/+110
|/
* Move the module name to it's own variableDonald Stufft2013-10-281-4/+4
|
* Put recipes firstDonald Stufft2013-10-281-1/+1
|
* Move the bindings into the hazmat moduleDonald Stufft2013-10-2827-6/+10
|
* Move primtives into a hazmat packageDonald Stufft2013-10-289-6/+20
|
* add some error parsing macrosPaul Kehrer2013-10-261-0/+5
|
* Rename _OneTimeCipherContextDavid Reid2013-10-241-3/+3
|
* Don't forget to provide an interface.David Reid2013-10-241-0/+1
|
* Initial refactoring of backend specific contexts.David Reid2013-10-242-76/+65
|
* Give API collections direct references to the backend.David Reid2013-10-241-44/+50
|
* simplify enc/dec in the OpenSSL backend by using the EVP_Cipher* methodsPaul Kehrer2013-10-233-44/+25
|
* split backend up (refs #170)Paul Kehrer2013-10-223-41/+53
| | | | | | | | * 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-1/+1
|
* Merge branch 'master' into api-to-backend-in-one-easy-stepPaul Kehrer2013-10-222-1/+5
|\ | | | | | | | | | | | | | | | | | | | | * 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
| * Merge pull request #153 from reaperhulk/hash-ctx-copy-apiAlex Gaynor2013-10-221-1/+1
| |\ | | | | | | When copying a hash, pass the api through to the new object
| | * When copying a hash, pass the api through to the new objectPaul Kehrer2013-10-221-1/+1
| | |
| * | add gcm constants and EVP_CIPHER_CTX_ctrl macroPaul Kehrer2013-10-221-0/+4
| |/
* / the great api -> backend renamePaul Kehrer2013-10-225-38/+45
|/
* fixes #148 + test casePaul Kehrer2013-10-221-1/+1
|
* Merge pull request #112 from reaperhulk/block-cipher-decryptDavid Reid2013-10-225-50/+110
|\ | | | | Block Cipher Decryption
| * Create CipherContext interface & document itPaul Kehrer2013-10-213-17/+35
| | | | | | | | | | | | | | * Rename BlockCipherEncryption/DecryptionContexts to just CipherEncryption/DecryptionContext * Moved register to interfaces.py from modes.py since it is generic and can be used to decorate the _CipherEncryption/DecryptionContexts