Commit 144b3f3e authored by Jan Kvapil's avatar Jan Kvapil
Browse files

Be explicit in the RSA documentation

parent d2597980
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ def fetch_key(uco: int) -> Optional[rsa.RSAPublicKey]:
# FIXME for 2023: return Optional[bytes] and return None on encryption failure?
def rsa_encrypt(key: rsa.RSAPublicKey, plaintext: bytes) -> bytes:
    """
    Uses RSA ``key`` to encrypt the ``plaintext``.
    Uses RSA public ``key`` to encrypt the ``plaintext``.

    :param key: The RSA public key to use for the encryption.
    :param plaintext: The plaintext bytes to be encrypted.