aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for OpenSSL 1.0.1 (#5178)Alex Gaynor2020-04-041-1/+0
|
* Deal with the 2.5 deprecations (#5048)Alex Gaynor2019-11-031-1/+1
| | | | | | | | | | | | * Deal with the 2.5 deprecations * pep8 + test fixes * docs typo * Why did I do this? * typo
* fix from_issuer_subject_key_identifier to take the right type (#4864)Paul Kehrer2019-05-041-0/+1
| | | | | | | | | | * fix from_issuer_subject_key_identifier to take the right type deprecate passing the old Extension wrapper object * don't use a try:except: * hilarious contortions to satisfy doc8
* Simplify string formatting (#4757)Alex Gaynor2019-02-201-6/+6
|
* Fixes #4734 -- Deal with deprecated things (#4736)Alex Gaynor2019-01-231-3/+2
| | | | | | | | | | * Fixes #4734 -- Deal with deprecated things - Make year based aliases of PersistentlyDeprecated so we can easily assess age - Removed encode/decode rfc6979 signature - Removed Certificate.serial * Unused import
* deprecate old from_encoded_point (#4640)Paul Kehrer2018-12-111-0/+1
|
* allow bytes-like for key/iv/data for symmetric encryption (#4621)Paul Kehrer2018-12-091-0/+7
| | | | | | | | | | | | | | | | | | * allow bytearrays for key/iv for symmetric encryption * bump pypy/cffi requirements * update docs, fix some tests * old openssl is naught but pain * revert a typo * use trusty for old pypy * better error msg again * restore match
* deprecate pythons without hmac.compare_digest (#4261)Paul Kehrer2018-05-241-0/+1
| | | | | | * deprecate the constant time bytes comparison path old python 2.7.x uses * pep8
* Fixes #4076 - simplify the implementation of int_from_bytes on python2 (#4077)Alex Gaynor2018-01-101-2/+1
| | | | | | | | * Fixes #4076 - simplify the implementation of int_from_bytes on python2 * whitespace * Added a test
* fix typo in comment (#4019)Benjamin Peterson2017-11-131-1/+1
|
* Use a different warning class so users get warnings (#4014)Alex Gaynor2017-11-111-2/+8
| | | | | | | | | | | | * Use a different warning class so users get warnings * fixed tests * do our own warning class * typo * flake8
* Inline calls to bit_length now that it's trivial (#3966)Alex Gaynor2017-10-121-0/+2
| | | | | | | | * Inline calls to bit_length now that it's trivial * unused imports * An comment
* expunge python 2.6 (#3962)Paul Kehrer2017-10-111-6/+2
| | | | | | | | | | * expunge python 2.6 * how did THAT happen * remove another unsupported python from the tox envlist * hypothesis can now be unconditionally imported
* increment deprecation for the 2.2 release cycle (#3961)Paul Kehrer2017-10-111-2/+1
|
* Begin the deprecation of auto-idna for x509.DNSName (#3830)Alex Gaynor2017-07-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Begin the deprecation of auto-idna for x509.DNSName Refs #3357 * fix warning * py3k fixes * fix docs * sigh * flake8 * these are words * words * tests for coverage * another test * do idna things * more idna things
* Fixed #3747 -- cache extensions on x.509 objects (#3769)Alex Gaynor2017-07-081-0/+14
| | | | | | | | | | * Fixed #3747 -- cache extensions on x.509 objects * be kind to cpython, save a dict lookup * flake8 * changelog
* ChaCha20Poly1305 support (#3680)Paul Kehrer2017-06-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * chacha20poly1305 support * add chacha20poly1305 backend and some fixes * refactor * forgot to remove this * pep8 * review feedback and a lot of type/value checking * review feedback * raise unsupportedalgorithm when creating a ChaCha20Poly1305 object if it's not supported. * switch to ciphertext||tag * typo * remove a branch we don't need * review feedback * decrypts is *also* a word * use reasons
* Post release tasks to open master for 2.0 (#3644)Alex Gaynor2017-05-291-1/+1
|
* Don't raise an UnsupportedExtension for critical extensions. (#3550)Alex Gaynor2017-05-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Don't raise an UnsupportedExtension for critical extensions. Fixes #2903 Fixes #2901 Fixes #3325 * Don't link * Revert "Don't link" This reverts commit 4fe847f91d9dd45cdc28a4984c4e44aad62a5de6. * fix * Revert "Revert "Don't link"" This reverts commit 856031b5a1fbad04ac218fa94ebf37dcd402f3ed. * fix * Deprecate this * Better changelog entry
* Don't compare cffi version using strings (#3524)Alex Gaynor2017-04-291-7/+0
|
* Remove unused assignment (#3519)Alex Gaynor2017-04-271-1/+1
|
* minor int_to_bytes performance increase (#3490)Ofek Lev2017-04-061-7/+13
| | | | | | | | * minor int_to_bytes performance increase * why is Python 2.6 supported anyway... * keep py2k version
* Remove API deprecated in 1.6, clean up the legacy deprecations (#3468)Alex Gaynor2017-03-211-6/+4
| | | | | | * Remove API deprecated in 1.6, clean up the legacy deprecations * flake8, unused import
* add support for update_into on CipherContext (#3190)Paul Kehrer2017-02-161-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* fix a regression in int_from_bytes (#3316)Paul Kehrer2016-12-131-1/+2
| | | | | | * fix a regression in int_from_bytes * add a new test file
* clean up int_from_bytes (#3295)Ofek Lev2016-12-021-13/+1
| | | | | | | | | | * clean up int_from_bytes 7x speed-up and code is more readable * remove unused import * rely on py2 built-in codecs
* Make DistributionPoint relative_name a set of NameAttribute (#3210)Fraser Tweedale2016-11-071-0/+1
| | | | | | | | | | | * Add RelativeDistinguishedName class * Make relative_name a RelativeDistinguishedName DistributionPoint relative_name is currently a Name but RFC 5280 defines it as RelativeDistinguishedName, i.e. a non-empty SET OF name attributes. Change the DistributionPoint relative_name attribute to be a RelativeDistinguishedName.
* Add a register_interface_if decorator. (#3120)Terry Chia2016-08-291-0/+9
| | | | | | | | * Add a register_interface_if decorator. * Add tests. * PEP 8.
* Add alias for Certificate serial as serial number (#2950)Chelsea Winfree2016-06-021-2/+4
| | | | | | | | * Add alias for Certificate serial as serial number * Adding deprecation to utils * Now with catch warnings and proper vers
* Merge pull request #2846 from reaperhulk/deprecation-danceAlex Gaynor2016-03-211-1/+0
|\ | | | | complete deprecation of CRLExtensionOID in favor of CRLEntryExtensionOID
| * complete deprecation of CRLExtensionOID in favor of CRLEntryExtensionOIDPaul Kehrer2016-03-211-1/+0
| | | | | | | | Deprecated in 1.2, removed in 1.4 per policy.
* | Warn when deleting deprecated attributes.Cory Benfield2016-03-211-0/+4
| |
* | Add __delattr__ to _ModuleWithDeprecations.Cory Benfield2016-03-211-0/+3
|/
* Added a comment so the efficiency of this jumps out to the next personAlex Gaynor2016-02-061-0/+1
|
* Formally deprecated support for OpenSSL 0.9.8Alex Gaynor2016-01-221-1/+1
|
* rename CRLExtensionOID to CRLEntryExtensionOIDPaul Kehrer2015-12-251-0/+3
|
* do the deprecation dance for the twelfth releasePaul Kehrer2015-10-291-2/+1
|
* add support for encoding/decoding elliptic curve pointsPaul Kehrer2015-10-261-2/+5
| | | | Based on the work of @ronf in #2346.
* flake8Alex Gaynor2015-09-291-0/+1
|
* sigh, fixAlex Gaynor2015-09-291-1/+1
|
* use signature so stuff works on 3.6 -- fixes #2382Alex Gaynor2015-09-291-3/+8
|
* resolve incorrect docs/naming around DSA (r, s) tuple encode/decodePaul Kehrer2015-08-101-0/+1
|
* py3 int.to_bytes is dead to mePaul Kehrer2015-08-081-10/+4
|
* refactor integer to bytes as utils.int_to_bytesPaul Kehrer2015-08-081-0/+13
|
* move int_from_bytes so we can use it elsewherePaul Kehrer2015-06-271-0/+21
|
* deprecation dance.Paul Kehrer2015-05-131-2/+1
| | | | fixes #1950
* add changelog entry, set proper deprecation warningPaul Kehrer2015-04-141-1/+1
|
* Add DeprecatedIn09Steven Buss2015-04-131-0/+1
|
* Do the deprecation dancePaul Kehrer2015-03-091-2/+1
|
* Use the official API for deprecation with the MACContext renameAlex Gaynor2015-03-011-3/+1
|