Your message dated Tue, 17 May 2022 08:50:44 +0200
with message-id <9c9bce41-ed6a-140b-0210-fd3c8834a...@physik.fu-berlin.de>
and subject line Re: python-cryptography: FTBFS with OpenSSL 3.0
has caused the Debian Bug report #1006008,
regarding python-cryptography: FTBFS with OpenSSL 3.0
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1006008: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006008
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-cryptography
Version: 3.4.8-1
Severity: important
Tags: bookworm sid
User: pkg-openssl-de...@lists.alioth.debian.org
Usertags: ftbfs-3.0
control: forwarded -1 https://github.com/pyca/cryptography/pull/6000

Your package is failing to build using OpenSSL 3.0 with the
following error:

| =================================== FAILURES 
===================================
| ______________________ TestPoly1305.test_vectors[vector0] 
______________________
| 
| self = <tests.hazmat.primitives.test_poly1305.TestPoly1305 object at 
0x7f1d0612e6b0>
| vector = {'key': 
b'0000000000000000000000000000000000000000000000000000000000000000', 'msg': 
b'00000000000000000000000000000000...0000000000000000000000000000000000000000000000000000000000000000000000000',
 'tag': b'00000000000000000000000000000000'}
| backend = <cryptography.hazmat.backends.openssl.backend.Backend object at 
0x7f1d11008c10>
| 
|     @pytest.mark.parametrize(
|         "vector",
|         load_vectors_from_file(
|             os.path.join("poly1305", "rfc7539.txt"), load_nist_vectors
|         ),
|     )
|     def test_vectors(self, vector, backend):
|         key = binascii.unhexlify(vector["key"])
|         msg = binascii.unhexlify(vector["msg"])
|         tag = binascii.unhexlify(vector["tag"])
|         poly = Poly1305(key)
|         poly.update(msg)
| >       assert poly.finalize() == tag
| 
| ../../../tests/hazmat/primitives/test_poly1305.py:51: 
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
| cryptography/hazmat/primitives/poly1305.py:34: in finalize
|     mac = self._ctx.finalize()
| cryptography/hazmat/backends/openssl/poly1305.py:56: in finalize
|     self._backend.openssl_assert(res != 0)
| cryptography/hazmat/backends/openssl/backend.py:242: in openssl_assert
|     return binding._openssl_assert(self._lib, ok, errors=errors)
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
| 
| lib = <module 'lib'>, ok = False
| errors = [<cryptography.hazmat.bindings.openssl.binding._OpenSSLError object 
at 0x7f1d0612e980>]
| 
|     def _openssl_assert(lib, ok, errors=None):
|         if not ok:
|             if errors is None:
|                 errors = _consume_errors(lib)
|             errors_with_text = _errors_with_text(errors)
|     
| >           raise InternalError(
|                 "Unknown OpenSSL error. This error is commonly encountered 
when "
|                 "another library is not cleaning up the OpenSSL error stack. 
If "
|                 "you are using cryptography with another library that uses "
|                 "OpenSSL try disabling it before reporting a bug. Otherwise "
|                 "please file an issue at 
https://github.com/pyca/cryptography/";
|                 "issues with information on how to reproduce "
|                 "this. ({0!r})".format(errors_with_text),
|                 errors_with_text,
|             )
| E           cryptography.exceptions.InternalError: Unknown OpenSSL error. 
This error is commonly encountered when another library is not cleaning up the 
OpenSSL error stack. If you are using cryptography with another library that 
uses OpenSSL try disabling it before reporting a bug. Otherwise please file an 
issue at https://github.com/pyca/cryptography/issues with information on how to 
reproduce this. ([_OpenSSLErrorWithText(code=50331803, lib=6, reason=155, 
reason_text=b'error:0300009B:digital envelope routines::buffer too small')])
| 
| cryptography/hazmat/bindings/openssl/binding.py:77: InternalError

Full build log:
   
https://people.debian.org/~bigeasy/openssl-rebuild-3/attempted/python-cryptography_3.4.8-1_amd64-2022-02-15T03:33:24Z

For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html

Sebastian

--- End Message ---
--- Begin Message ---
Hi!

I just noticed the patches for OpenSSL 3.0 support have already been added to 
the
Debian package [1]. I also verified that the package builds fine in unstable
with OpenSSL 3.0.

Therefore closing this bug report.

Adrian

> [1] 
> https://salsa.debian.org/python-team/packages/python-cryptography/-/tree/master/debian/patches/openssl3

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

--- End Message ---

Reply via email to