Skip to content

Commit 61653e2

Browse files
author
William Tisäter
committed
Rename data_to_* to message
1 parent 9ca480e commit 61653e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+21
-9307
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/site
12
/target
23
/.shadowenv.d
34
*.so

python/rsmime/__init__.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
...

site/404.html

Lines changed: 0 additions & 327 deletions
This file was deleted.

0 commit comments

Comments
 (0)