Python3-crypto fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-crypto (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When I try to use crypto from python3(Python 3.10.4) I get errors:
vricosti@
Python 3.10.4
vricosti@
crypto==1.4.1
cryptography==3.4.8
pycrypto==2.6.1
First error:
--------------
import sys
import os
from Crypto.Cipher import AES
from Crypto import Random
iv = Random.new().read( AES.block_size )
I get the exception: module 'time' has no attribute 'clock'
------------
Second error:
--------------
import sys
import os
from Crypto.Cipher import AES
from Crypto import Random
def decrypt(key, ciphered_filepath):
with open(ciphered_
content = f.read()
if len(content) > 16:
iv = content[0:16]
cipher = AES.new(key, AES.MODE_CFB, iv)
decrypt(
I get the exception: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
description: | updated |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1981796
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.