aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/inline.py
diff options
context:
space:
mode:
authorJ08nY2017-07-17 19:03:08 +0200
committerJ08nY2017-07-17 19:03:08 +0200
commit8fe73c6364c873e1bd52286353c3f79a4486127a (patch)
treeb6b51769fb2f45150a83be7d7231f60ed9b6b88a /src/mailman_pgp/pgp/inline.py
parent8de6bac71e3966d89523dbdb4449efe86af3586f (diff)
downloadmailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.tar.gz
mailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.tar.zst
mailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.zip
Diffstat (limited to 'src/mailman_pgp/pgp/inline.py')
-rw-r--r--src/mailman_pgp/pgp/inline.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mailman_pgp/pgp/inline.py b/src/mailman_pgp/pgp/inline.py
index ccc8176..372204a 100644
--- a/src/mailman_pgp/pgp/inline.py
+++ b/src/mailman_pgp/pgp/inline.py
@@ -258,12 +258,18 @@ class InlineWrapper:
def sign_encrypt(self, key, *keys, hash=None,
cipher=SymmetricKeyAlgorithm.AES256):
"""
+ Sign and encrypt the message, in one go.
- :param key:
- :param keys:
+ :param key: The key to sign with.
+ :type key: pgpy.PGPKey
+ :param keys: The key/s to encrypt with.
+ :type keys: pgpy.PGPKey
:param hash:
+ :type hash: pgpy.constants.HashAlgorithm
:param cipher:
- :return:
+ :type cipher: pgpy.constants.SymmetricKeyAlgorithm
+ :return: The signed + encrypted message.
+ :rtype: mailman.email.message.Message
"""
if len(keys) == 0:
raise ValueError('At least one key necessary.')