@@ -7,14 +7,14 @@ class Rsmime:
77 key_file: Path to private key on disk.
88
99 Raises:
10- CertificateError: If there is an error reading the certificate or key.
10+ exceptions. CertificateError: If there is an error reading the certificate or key.
1111 """
1212 ...
13- def sign (self , data_to_sign : bytes , * , detached : bool = False ) -> bytes :
13+ def sign (self , message : bytes , * , detached : bool = False ) -> bytes :
1414 """Sign a message and return the signed S/MIME message.
1515
1616 Parameters:
17- data_to_sign: Data to sign.
17+ message: Message to sign.
1818 detached: Whether to return a detached signature. When set to `True`, the
1919 return value will be a multipart message with the signature in the
2020 plain text in the first part and the signature in the second part. When
@@ -25,25 +25,25 @@ class Rsmime:
2525 Signed S/MIME message.
2626
2727 Raises:
28- SignError: If there is an error signing the data.
28+ exceptions. SignError: If there is an error signing the data.
2929
3030 """
3131 ...
3232 @staticmethod
33- def verify (data_to_verify : bytes , raise_on_expired : bool = False ) -> bytes :
33+ def verify (message : bytes , raise_on_expired : bool = False ) -> bytes :
3434 """Verify a signed message and return the raw message data.
3535
3636 Parameters:
37- data_to_verify : The signed message to verify.
37+ message : The signed message to verify.
3838 raise_on_expired: Whether to raise an exception if any certificate
3939 in the message has expired.
4040
4141 Returns:
4242 Raw message data.
4343
4444 Raises:
45- VerifyError: If there is an error verifying the message.
46- CertificateExpiredError: If any certificate in the message has expired.
45+ exceptions. VerifyError: If there is an error verifying the message.
46+ exceptions. CertificateExpiredError: If any certificate in the message has expired.
4747 Raise only if `raise_on_expired` is `True`.
4848 """
4949 ...
0 commit comments