Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add hmac_supported method to backend. | Paul Kehrer | 2013-12-23 | 2 | -8/+8 |
| | | | | | Previously we were implicitly assuming that if a hash was supported then its hmac equivalent was as well. | ||||
* | Merge pull request #325 from public/unsupported-cipher-messages | Alex Gaynor | 2013-12-22 | 2 | -8/+16 |
|\ | | | | | UnsupportedAlgorithm error messages for Ciphers | ||||
| * | UnsupportedAlgorithm error messages for Ciphers | Alex Stapleton | 2013-12-22 | 2 | -8/+16 |
| | | |||||
* | | Merge pull request #327 from reaperhulk/gcm-lower-limit-tag | Alex Gaynor | 2013-12-21 | 1 | -0/+7 |
|\ \ | | | | | | | Restrict GCM tag length to 4+ bytes | ||||
| * | | restrict gcm tags to a minimum of 4 bytes in length | Paul Kehrer | 2013-12-21 | 1 | -0/+7 |
| | | | |||||
* | | | Merge pull request #326 from public/unsupported-hmac-hash | Alex Gaynor | 2013-12-21 | 1 | -2/+12 |
|\ \ \ | |/ / |/| | | Raise UnsupportedAlgorithm when initing HMACs | ||||
| * | | Raise UnsupportedAlgorithm when initing HMACs | Alex Stapleton | 2013-12-21 | 1 | -2/+12 |
| |/ | |||||
* | | Merge pull request #324 from public/unsupported-hash | Alex Gaynor | 2013-12-21 | 1 | -2/+12 |
|\ \ | | | | | | | Raise UnsupportedAlgorithm when initing Hash() | ||||
| * | | Raise UnsupportedAlgorithm when initing Hash() | Alex Stapleton | 2013-12-21 | 1 | -2/+12 |
| |/ | | | | | | | Instead of just an AssertionError. | ||||
* | | use both kwargs and named args in lambdas for clarity | Paul Kehrer | 2013-12-21 | 6 | -65/+43 |
| | | |||||
* | | don't modify params on parametrized tests | Paul Kehrer | 2013-12-20 | 7 | -55/+77 |
|/ | | | | | multiple backends receive the same params dicts, but we were modifying them using pop. | ||||
* | Merge branch 'master' into no-more-generator | Alex Gaynor | 2013-12-17 | 3 | -2/+43 |
|\ | | | | | | | | | Conflicts: tests/hazmat/primitives/utils.py | ||||
| * | Merge pull request #308 from alex/rename-bindings | Donald Stufft | 2013-12-15 | 3 | -3/+3 |
| |\ | | | | | | | Renamed bindings to backends | ||||
| | * | Also rename teh tests | Alex Gaynor | 2013-12-13 | 2 | -0/+0 |
| | | | |||||
| | * | Renamed bindings to backends | Alex Gaynor | 2013-12-13 | 2 | -3/+3 |
| | | | |||||
| * | | Merge pull request #283 from juliankrause/constant_time | Paul Kehrer | 2013-12-14 | 1 | -0/+41 |
| |\ \ | | |/ | |/| | Beginnings of a constant_time module. | ||||
| | * | Beginnings of a constant_time module. | Julian Krause | 2013-12-04 | 1 | -0/+41 |
| | | | |||||
* | | | pep8 | Alex Gaynor | 2013-12-13 | 1 | -1/+1 |
| | | | |||||
* | | | Make this less invasive | Alex Gaynor | 2013-12-13 | 1 | -177/+280 |
| | | | |||||
* | | | Clean up test generation to not use generators anymore and use parametrization | Alex Gaynor | 2013-12-13 | 1 | -332/+209 |
|/ / | |||||
* / | raise ValueErrors when supplying/not supplying tags for GCM | Paul Kehrer | 2013-12-04 | 3 | -3/+59 |
|/ | |||||
* | create AEADEncryptionContext and DecryptionContext | Paul Kehrer | 2013-11-29 | 1 | -1/+1 |
| | |||||
* | raise TypeError if you attempt to get the tag attribute on a decrypt | Paul Kehrer | 2013-11-29 | 1 | -0/+9 |
| | | | | | * To support this the _AEADCipherContext in base.py now needs to be aware of whether it is encrypting/decrypting | ||||
* | rename add_data to authenticate_additional_data for clarity (hopefully) | Paul Kehrer | 2013-11-29 | 1 | -5/+5 |
| | |||||
* | invalidtag exception for gcm | Paul Kehrer | 2013-11-29 | 1 | -2/+2 |
| | | | | | This exception is probably not safe. It depends on the assumption that if ERR_get_error returns a 0 then it is an AEAD tag error. | ||||
* | enforce AEAD add_data before update | Paul Kehrer | 2013-11-29 | 3 | -12/+14 |
| | |||||
* | _AEADCipherContext refactor | Paul Kehrer | 2013-11-29 | 1 | -0/+4 |
| | | | | | | * No longer extends _CipherContext * Remove _tag from _CipherContext * This change duplicates a small amount of code from _CipherContext | ||||
* | rename NotFinalized exception to NotYetFinalized because alex is right | Paul Kehrer | 2013-11-29 | 1 | -2/+2 |
| | | | | ...it does read better that way | ||||
* | GCM support | Paul Kehrer | 2013-11-29 | 4 | -5/+163 |
| | |||||
* | Fixed this test. It was passing for the wrong reason. | Alex Gaynor | 2013-11-27 | 1 | -2/+2 |
| | | | | Shame on us for letting something without coverage land. | ||||
* | Merge pull request #227 from dreid/explicit-backend-in-hazmat | Alex Gaynor | 2013-11-26 | 5 | -30/+22 |
|\ | | | | | Explicit backend | ||||
| * | Fix pep8 | David Reid | 2013-11-25 | 1 | -1/+2 |
| | | |||||
| * | Use keyword argument forms everywhere. | David Reid | 2013-11-25 | 3 | -15/+16 |
| | | |||||
| * | Test that openssl is the default backend. | David Reid | 2013-11-20 | 1 | -0/+4 |
| | | |||||
| * | Explicit backend | David Reid | 2013-11-20 | 4 | -37/+23 |
| | | |||||
* | | Fixed branch coverage | Alex Gaynor | 2013-11-23 | 1 | -0/+17 |
| | | |||||
* | | Change teh exception | Alex Gaynor | 2013-11-22 | 1 | -5/+3 |
| | | |||||
* | | Coverage | Alex Gaynor | 2013-11-22 | 1 | -0/+4 |
| | | |||||
* | | Raise a correct error when content isn't padded correctly | Alex Gaynor | 2013-11-22 | 1 | -1/+19 |
|/ | |||||
* | Move interfaces.register to utils.register_interface in preparation for more ↵ | David Reid | 2013-11-18 | 2 | -2/+4 |
| | | | | interface modules. | ||||
* | Implement and document an interface for cipher algorithms | David Reid | 2013-11-15 | 2 | -6/+18 |
| | |||||
* | Merge pull request #258 from alex/already-finalized | David Reid | 2013-11-13 | 2 | -5/+8 |
|\ | | | | | Use AlreadyFinalized for symmetric ciphers | ||||
| * | Use AlreadyFinalized for symmetric ciphers | Alex Gaynor | 2013-11-13 | 2 | -5/+8 |
| | | |||||
* | | Make HMAC methods raise AlreadyFinalized. | David Reid | 2013-11-13 | 1 | -0/+14 |
|/ | |||||
* | Merge pull request #253 from dreid/hash-raise-after-finalize | Alex Gaynor | 2013-11-13 | 1 | -0/+11 |
|\ | | | | | raise an exception if you try to use a HashContext after finalize is called. | ||||
| * | Import AlreadyFinalized instead of exceptions. | David Reid | 2013-11-13 | 1 | -3/+3 |
| | | |||||
| * | raise an exception if you try to use a HashContext after finalize is called. | David Reid | 2013-11-12 | 1 | -0/+11 |
| | | |||||
* | | Also remove teh ciphers specific class | Alex Gaynor | 2013-11-13 | 6 | -14/+14 |
| | | |||||
* | | Remove the hash and hmac specific classes, now that the logic is the Context ↵ | Alex Gaynor | 2013-11-13 | 4 | -26/+26 |
| | | | | | | | | classes they don't really add value | ||||
* | | Merge branch 'master' into hmac-context-from-backend | David Reid | 2013-11-12 | 1 | -3/+3 |
|\| | | | | | | | | | | | Conflicts: cryptography/hazmat/bindings/openssl/backend.py cryptography/hazmat/primitives/hmac.py |