Skip to content

Commit

Permalink
Add a CodeQL suppression (#6699)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton authored Dec 11, 2024
1 parent 93f3ae4 commit 41b1f97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/infra/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def generate_aes_key(key_bits: int) -> bytes:

def generate_rsa_keypair(key_size: int) -> Tuple[str, str]:
assert key_size >= 2048
# CodeQL [SM04455] False positive: The key size is asserted to be at least 2048 bytes
priv = rsa.generate_private_key(
public_exponent=RECOMMENDED_RSA_PUBLIC_EXPONENT,
key_size=key_size,
Expand Down

0 comments on commit 41b1f97

Please sign in to comment.