Skip to content

Commit 1bf9f7d

Browse files
committed
Python: Add missing annotations to new crypto tests
1 parent 11cd0db commit 1bf9f7d

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

python/ql/test/experimental/library-tests/frameworks/crypto/test_dsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from Crypto.Hash import SHA256
77

88

9-
private_key = DSA.generate(2048)
9+
private_key = DSA.generate(2048) # $ MISSING: PublicKeyGeneration keySize=2048
1010
public_key = private_key.publickey()
1111

1212
# ------------------------------------------------------------------------------

python/ql/test/experimental/library-tests/frameworks/crypto/test_ec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from Crypto.Hash import SHA256
44

55

6-
private_key = ECC.generate(curve="P-256")
6+
private_key = ECC.generate(curve="P-256") # $ MISSING: PublicKeyGeneration keySize=256
77
public_key = private_key.public_key()
88

99
# ------------------------------------------------------------------------------

python/ql/test/experimental/library-tests/frameworks/crypto/test_rsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from Crypto.Signature import pss
66
from Crypto.Hash import SHA256
77

8-
private_key = RSA.generate(2048)
8+
private_key = RSA.generate(2048) # $ MISSING: PublicKeyGeneration keySize=2048
99
public_key = private_key.publickey()
1010

1111
# ------------------------------------------------------------------------------

python/ql/test/experimental/library-tests/frameworks/cryptodome/test_dsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from Cryptodome.Hash import SHA256
77

88

9-
private_key = DSA.generate(2048)
9+
private_key = DSA.generate(2048) # $ MISSING: PublicKeyGeneration keySize=2048
1010
public_key = private_key.publickey()
1111

1212
# ------------------------------------------------------------------------------

python/ql/test/experimental/library-tests/frameworks/cryptodome/test_ec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from Cryptodome.Hash import SHA256
44

55

6-
private_key = ECC.generate(curve="P-256")
6+
private_key = ECC.generate(curve="P-256") # $ MISSING: PublicKeyGeneration keySize=256
77
public_key = private_key.public_key()
88

99
# ------------------------------------------------------------------------------

python/ql/test/experimental/library-tests/frameworks/cryptodome/test_rsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from Cryptodome.Signature import pss
66
from Cryptodome.Hash import SHA256
77

8-
private_key = RSA.generate(2048)
8+
private_key = RSA.generate(2048) # $ MISSING: PublicKeyGeneration keySize=2048
99
public_key = private_key.publickey()
1010

1111
# ------------------------------------------------------------------------------

python/ql/test/experimental/library-tests/frameworks/cryptography/test_dsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
HASH_ALGORITHM = hashes.SHA256()
99

10-
private_key = dsa.generate_private_key(key_size=2048)
10+
private_key = dsa.generate_private_key(key_size=2048) # $ MISSING: PublicKeyGeneration keySize=2048
1111
public_key = private_key.public_key()
1212

1313
message = b"message"

python/ql/test/experimental/library-tests/frameworks/cryptography/test_ec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from cryptography.exceptions import InvalidSignature
66

77

8-
private_key = ec.generate_private_key(curve=ec.SECP384R1())
8+
private_key = ec.generate_private_key(curve=ec.SECP384R1()) # $ MISSING: PublicKeyGeneration keySize=384
99
public_key = private_key.public_key()
1010

1111
HASH_ALGORITHM = hashes.SHA256()

python/ql/test/experimental/library-tests/frameworks/cryptography/test_rsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from cryptography.exceptions import InvalidSignature
77

88

9-
private_key = rsa.generate_private_key(public_exponent=65537, key_size=2048)
9+
private_key = rsa.generate_private_key(public_exponent=65537, key_size=2048) # $ MISSING: PublicKeyGeneration keySize=2048
1010
public_key = private_key.public_key()
1111

1212
HASH_ALGORITHM = hashes.SHA256()

0 commit comments

Comments
 (0)