Skip to content

Commit

Permalink
3.2.1 release (#5525)
Browse files Browse the repository at this point in the history
* Disable blinding for RSA pub keys (#5524)

* Bump to 3.2.1
  • Loading branch information
alex authored Oct 28, 2020
1 parent c9e6522 commit 0c7592c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

.. _v3-2-1:

3.2.1 - 2020-10-27
~~~~~~~~~~~~~~~~~~

* Disable blinding on RSA public keys to address an error with some versions
of OpenSSL.

.. _v3-2:

3.2 - 2020-10-25
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
)
__uri__ = "https://github.com/pyca/cryptography"

__version__ = "3.2"
__version__ = "3.2.1"

__author__ = "The cryptography developers"
__email__ = "[email protected]"

__license__ = "BSD or Apache License, Version 2.0"
__copyright__ = "Copyright 2013-2019 {}".format(__author__)
__copyright__ = "Copyright 2013-2020 {}".format(__author__)
5 changes: 0 additions & 5 deletions src/cryptography/hazmat/backends/openssl/rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,6 @@ def sign(self, data, padding, algorithm):
@utils.register_interface(RSAPublicKeyWithSerialization)
class _RSAPublicKey(object):
def __init__(self, backend, rsa_cdata, evp_pkey):
# Blinding is on by default in many versions of OpenSSL, but let's
# just be conservative here.
res = backend._lib.RSA_blinding_on(rsa_cdata, backend._ffi.NULL)
backend.openssl_assert(res == 1)

self._backend = backend
self._rsa_cdata = rsa_cdata
self._evp_pkey = evp_pkey
Expand Down
3 changes: 3 additions & 0 deletions tests/hazmat/primitives/test_rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,9 @@ def test_rsa_public_numbers_create_key(self, backend):
public_key = RSA_KEY_1024.public_numbers.public_key(backend)
assert public_key

public_key = rsa.RSAPublicNumbers(n=10, e=3).public_key(backend)
assert public_key

def test_public_numbers_invalid_types(self):
with pytest.raises(TypeError):
rsa.RSAPublicNumbers(e=None, n=15)
Expand Down
4 changes: 2 additions & 2 deletions vectors/cryptography_vectors/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

__uri__ = "https://github.com/pyca/cryptography"

__version__ = "3.2"
__version__ = "3.2.1"

__author__ = "The cryptography developers"
__email__ = "[email protected]"

__license__ = "BSD or Apache License, Version 2.0"
__copyright__ = "Copyright 2013-2019 %s" % __author__
__copyright__ = "Copyright 2013-2020 %s" % __author__

0 comments on commit 0c7592c

Please sign in to comment.