Skip to content

Commit

Permalink
Correct key size in exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hwine authored and catlee committed Dec 21, 2017
1 parent d1d67db commit 9079e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mardor/signing.py
Expand Up @@ -106,7 +106,7 @@ def make_verifier_v2(public_key, signature):
"""
key = get_publickey(public_key)
if key.key_size != 4096:
raise ValueError('2048 bit RSA key required')
raise ValueError('4096 bit RSA key required')
verifier = key.verifier(
signature,
padding.PKCS1v15(),
Expand Down Expand Up @@ -153,7 +153,7 @@ def make_signer_v2(private_key):
backend=default_backend(),
)
if key.key_size != 4096:
raise ValueError('2048 bit RSA key required')
raise ValueError('4096 bit RSA key required')
signer = key.signer(
padding.PKCS1v15(),
hashes.SHA384(),
Expand Down

0 comments on commit 9079e24

Please sign in to comment.