Yubico / python-yubihsm

Apache License 2.0
44 stars 15 forks source link

Use of deprecated cryptography.utils.int_from_bytes #18

Closed g-psantos closed 3 years ago

g-psantos commented 3 years ago

The cryptography.io package deprecated the utils.int_from_bytes function in December 2020.

Executing Python scripts that rely on the YubiHSM package now triggers the following warning:

.../site-packages/yubihsm/objects.py:30: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_to_bytes, int_from_bytes

Python version: 3.7.10 YubiHSM package version: 2.0.1 Cryptography package version: 3.4.6

Would it be possible to release a fix to the YubiHSM package that addresses this issue?

dainnilsson commented 3 years ago

We have this and a few other things that need to be addressed. I don't have a scheduled date for a new release, but I hope we can get one out fairly soon!

dainnilsson commented 3 years ago

python-yubihsm 2.1.0 is now released, sorry for the delay!