Python: Add cryptography test for EC

Apparently, passing in the class (without instantiating it) is allowed
This commit is contained in:
Rasmus Wriedt Larsen
2021-05-05 10:52:57 +02:00
parent f03c99ab03
commit 3ceb8bbcc6

View File

@@ -6,6 +6,7 @@ from cryptography.exceptions import InvalidSignature
private_key = ec.generate_private_key(curve=ec.SECP384R1()) # $ PublicKeyGeneration keySize=384
private_key = ec.generate_private_key(curve=ec.SECP384R1) # $ MISSING: PublicKeyGeneration keySize=384
public_key = private_key.public_key()
HASH_ALGORITHM = hashes.SHA256()