diff --git a/.gitignore b/.gitignore index e670e41..8d258c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/site /target /.shadowenv.d *.so diff --git a/python/rsmime/__init__.pyi b/python/rsmime/__init__.pyi index f541523..2db894a 100644 --- a/python/rsmime/__init__.pyi +++ b/python/rsmime/__init__.pyi @@ -7,14 +7,14 @@ class Rsmime: key_file: Path to private key on disk. Raises: - CertificateError: If there is an error reading the certificate or key. + exceptions.CertificateError: If there is an error reading the certificate or key. """ ... - def sign(self, data_to_sign: bytes, *, detached: bool = False) -> bytes: + def sign(self, message: bytes, *, detached: bool = False) -> bytes: """Sign a message and return the signed S/MIME message. Parameters: - data_to_sign: Data to sign. + message: Message to sign. detached: Whether to return a detached signature. When set to `True`, the return value will be a multipart message with the signature in the plain text in the first part and the signature in the second part. When @@ -25,16 +25,16 @@ class Rsmime: Signed S/MIME message. Raises: - SignError: If there is an error signing the data. + exceptions.SignError: If there is an error signing the data. """ ... @staticmethod - def verify(data_to_verify: bytes, raise_on_expired: bool = False) -> bytes: + def verify(message: bytes, raise_on_expired: bool = False) -> bytes: """Verify a signed message and return the raw message data. Parameters: - data_to_verify: The signed message to verify. + message: The signed message to verify. raise_on_expired: Whether to raise an exception if any certificate in the message has expired. @@ -42,8 +42,8 @@ class Rsmime: Raw message data. Raises: - VerifyError: If there is an error verifying the message. - CertificateExpiredError: If any certificate in the message has expired. + exceptions.VerifyError: If there is an error verifying the message. + exceptions.CertificateExpiredError: If any certificate in the message has expired. Raise only if `raise_on_expired` is `True`. """ ... diff --git a/site/404.html b/site/404.html deleted file mode 100644 index 02bcf44..0000000 --- a/site/404.html +++ /dev/null @@ -1,327 +0,0 @@ - - - -
- - - - - - - - - - - - - - -{"use strict";/*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */var Ha=/["'&<>]/;Un.exports=$a;function $a(e){var t=""+e,r=Ha.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i