From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] python3-cryptography: gives an error: X25519 is not supported by this version of OpenSSL
Date: Sat, 30 Jan 2021 03:26:48 +0100 [thread overview]
Message-ID: <20210130022648.9ZTVWdQ6v8UzKfr6b0eluNdqBUSJkQRAxiWQwJhz9UY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-13584@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]
Closed issue by user318 on void-packages repository
https://github.com/void-linux/void-packages/issues/13584
Description:
### System
* xuname: Void 4.19.60_1 x86_64 GenuineIntel notuptodate rF
* package: python3-cryptography-2.4.2_2
### Expected behavior
It is expected to work with x25519.
### Actual behavior
It returns an error when I try to generate x25519 key.
### Steps to reproduce the behavior
```
$ python
Python 3.6.9 (default, Jul 5 2019, 09:47:14)
[GCC 9.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cryptography.hazmat.primitives.asymmetric.x25519 import X25519PrivateKey
>>> private_key = X25519PrivateKey.generate()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py", line 39, in generate
_Reasons.UNSUPPORTED_EXCHANGE_ALGORITHM
cryptography.exceptions.UnsupportedAlgorithm: X25519 is not supported by this version of OpenSSL.
>>> from cryptography.hazmat.backends import default_backend
>>> default_backend().x25519_generate_key()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 2067, in x25519_generate_key
self.openssl_assert(evp_pkey_ctx != self._ffi.NULL)
File "/usr/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 115, in openssl_assert
return binding._openssl_assert(self._lib, ok)
File "/usr/lib/python3.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 77, in _openssl_assert
errors_with_text
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=117436572, lib=6, func=4095, reason=156, reason_text=b'error:06FFF09C:digital envelope routines:CRYPTO_internal:unsupported algorithm')])
```
prev parent reply other threads:[~2021-01-30 2:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-13584@inbox.vuxu.org>
2021-01-30 2:26 ` ericonr
2021-01-30 2:26 ` ericonr [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210130022648.9ZTVWdQ6v8UzKfr6b0eluNdqBUSJkQRAxiWQwJhz9UY@z \
--to=ericonr@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).