summaryrefslogtreecommitdiff
path: root/src/cryptography/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Move DSA* interfaces to interfaces.dsa moduleAlex Stapleton2015-01-221-0/+2
|
* flake8Alex Gaynor2015-01-011-1/+0
|
* Added a utility for deprecating a module attributeAlex Gaynor2015-01-011-4/+38
|
* remove fully deprecated items from 0.6 deprecation cyclePaul Kehrer2014-12-181-1/+2
|
* A handful of tiny fixesAlex Gaynor2014-12-151-3/+4
|
* Update the license header for every source file, as well as the documentation.Alex Gaynor2014-11-161-12/+3
| | | | Fixes #1209
* Move the cryptography package into a src/ subdirectoryDonald Stufft2014-11-131-0/+64
Due to differences in how py.test determines which module to ``import`` the test suite actually runs against the cryptography which is in the *current* directory instead of the cryptography which is installed. The problem essentially boils down to when there is a tests/__init__.py then py.test adds the current directory to the front of the sys.path, causing it to take precedence over the installed location. This means that running the tests relies on the implicit compile that CFFI does instead of testing against what people will actually be runnning, which is the module compiled by setup.py.