You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional modules needed to run scapy are being removed or rewritten from the hazmat directory.
file path: C:\Users\username\AppData\Local\Programs\Python\Python312\Lib\site-packages\cryptography\hazmat\backends\openssl\
So far these modules have disappeared as of cryptography 42.0.2 in the above directory:
ec.py
rsa.py
utils.py
cmac.py
This causes reference errors in the scapy cert.py library accessing the InvalidSignature class.
from cryptography.hazmat.backends.openssl.ec import InvalidSignature
Scapy version
2.5.0
Python version
3.12.1
Operating system
Windows 11
Additional environment information
Missing modules in cryptography
How to reproduce
Update to cryptography 42.0.2
Actual result
from scapy.layers.tls.all import *
from cryptography.hazmat.backends.openssl.ec import InvalidSignature #from cryptography.hazmat.backends.openssl.ec import InvalidSignature
ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.ec'
Expected result
Module to be present or a work around to remove this functionality in the code as deprecated.
Related resources
No response
The text was updated successfully, but these errors were encountered:
@gpotter2 you've only fixed this in master branch which currently has no ETA for a release since it's blocked by #4196
Please can a patch version of 2.5.x be released which pins the dependency to cryptography<42 ? As it stands the version of scapy on PyPI is broken because of this.
It works if you use the master from github, just patch it yourself and copy and paste the files from the scapy module on github into the C:\Users\username\AppData\Local\Programs\Python\Python312\Lib\site-packages\scapy folder until your cryptography module errors disappear.
Brief description
Additional modules needed to run scapy are being removed or rewritten from the hazmat directory.
file path: C:\Users\username\AppData\Local\Programs\Python\Python312\Lib\site-packages\cryptography\hazmat\backends\openssl\
So far these modules have disappeared as of cryptography 42.0.2 in the above directory:
ec.py
rsa.py
utils.py
cmac.py
This causes reference errors in the scapy cert.py library accessing the InvalidSignature class.
from cryptography.hazmat.backends.openssl.ec import InvalidSignature
Scapy version
2.5.0
Python version
3.12.1
Operating system
Windows 11
Additional environment information
Missing modules in cryptography
How to reproduce
Update to cryptography 42.0.2
Actual result
from scapy.layers.tls.all import *
from cryptography.hazmat.backends.openssl.ec import InvalidSignature #from cryptography.hazmat.backends.openssl.ec import InvalidSignature
ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.ec'
Expected result
Module to be present or a work around to remove this functionality in the code as deprecated.
Related resources
No response
The text was updated successfully, but these errors were encountered: