diff options
author | Andrey Semakin <and-semakin@ya.ru> | 2019-11-04 18:35:23 +0500 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2020-06-03 13:43:27 +0200 |
commit | ae1a906952557f616706f79c66030fd812e48cdf (patch) | |
tree | 8b5d9f4051d72936f0b6fb4e2048d20282a34ab4 /rsa/pkcs1.py | |
parent | 1473cb8599c44cffad56cecbe32c467d64f00247 (diff) | |
download | rsa-git-ae1a906952557f616706f79c66030fd812e48cdf.tar.gz |
Add more type hints
Diffstat (limited to 'rsa/pkcs1.py')
-rw-r--r-- | rsa/pkcs1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/pkcs1.py b/rsa/pkcs1.py index 10ee50b..8d77a97 100644 --- a/rsa/pkcs1.py +++ b/rsa/pkcs1.py @@ -157,7 +157,7 @@ def _pad_for_signing(message: bytes, target_length: int) -> bytes: message]) -def encrypt(message: bytes, pub_key: key.PublicKey): +def encrypt(message: bytes, pub_key: key.PublicKey) -> bytes: """Encrypts the given message using PKCS#1 v1.5 :param message: the message to encrypt. Must be a byte string no longer than |