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
* Add comments to suppress codeql alerts
Added CodeQL comments to suppress alerts for various hash algorithm usages in cryptography package files for compatibility and backwards compatibility purposes. No functional changes were made.
Copy file name to clipboardExpand all lines: Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/cryptography/hazmat/backends/openssl/backend.py
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -97,18 +97,18 @@ class Backend:
97
97
# Sometimes SHA1 is still permissible. That logic is contained
98
98
# within the various *_supported methods.
99
99
_fips_hashes= (
100
-
hashes.SHA224,
100
+
hashes.SHA224,# CodeQL [SM02167] This is for backwards compatibility.
101
101
hashes.SHA256,
102
102
hashes.SHA384,
103
103
hashes.SHA512,
104
-
hashes.SHA512_224,
105
-
hashes.SHA512_256,
104
+
hashes.SHA512_224,# CodeQL [SM02167] This is for backwards compatibility.
105
+
hashes.SHA512_256,# CodeQL [SM02167] This is for backwards compatibility.
106
106
hashes.SHA3_224, # CodeQL [SM02167] This is for backwards compatibility.
107
-
hashes.SHA3_256,
108
-
hashes.SHA3_384,
109
-
hashes.SHA3_512,
107
+
hashes.SHA3_256,# CodeQL [SM02167] This is for backwards compatibility.
108
+
hashes.SHA3_384,# CodeQL [SM02167] This is for backwards compatibility.
109
+
hashes.SHA3_512,# CodeQL [SM02167] This is for backwards compatibility.
110
110
hashes.SHAKE128, # CodeQL [SM02167] This is for backwards compatibility.
111
-
hashes.SHAKE256,
111
+
hashes.SHAKE256,# CodeQL [SM02167] This is for backwards compatibility.
112
112
)
113
113
_fips_ecdh_curves= (
114
114
ec.SECP224R1,
@@ -197,7 +197,7 @@ def signature_hash_supported(
197
197
) ->bool:
198
198
# Dedicated check for hashing algorithm use in message digest for
199
199
# signatures, e.g. RSA PKCS#1 v1.5 SHA1 (sha1WithRSAEncryption).
0 commit comments