Skip to content

Commit bfbaa85

Browse files
committed
Python: Add test of public_key method with cryptodome
Added in 3.10 release https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst#3100-6-february-2021
1 parent 8d3170b commit bfbaa85

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
from Crypto.Hash import SHA256
77

88
private_key = RSA.generate(2048) # $ PublicKeyGeneration keySize=2048
9+
10+
# These 2 methods do the same
911
public_key = private_key.publickey()
12+
public_key = private_key.public_key()
1013

1114
# ------------------------------------------------------------------------------
1215
# encrypt/decrypt

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
from Cryptodome.Hash import SHA256
77

88
private_key = RSA.generate(2048) # $ PublicKeyGeneration keySize=2048
9+
10+
# These 2 methods do the same
911
public_key = private_key.publickey()
12+
public_key = private_key.public_key()
1013

1114
# ------------------------------------------------------------------------------
1215
# encrypt/decrypt

0 commit comments

Comments
 (0)