MCPcopy Index your code
hub / github.com/secdev/scapy / isCryptographyValid

Function isCryptographyValid

scapy/config.py:742–755  ·  view source on GitHub ↗

Check if the cryptography module >= 2.0.0 is present. This is the minimum version for most usages in Scapy.

()

Source from the content-addressed store, hash-verified

740
741
742def isCryptographyValid():
743 # type: () -> bool
744 """
745 Check if the cryptography module >= 2.0.0 is present. This is the minimum
746 version for most usages in Scapy.
747 """
748 # Check import
749 try:
750 import cryptography
751 except ImportError:
752 return False
753
754 # Check minimum version
755 return _version_checker(cryptography, (2, 0, 0))
756
757
758def isCryptographyAdvanced():

Callers 1

ConfClass · 0.85

Calls 1

_version_checkerFunction · 0.85

Tested by

no test coverage detected