blob: a7b0df5dd0a43f1db7c48c13cccb0ed9c4cb30ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
from memoryhole.protection import protect, ProtectConfig
from memoryhole.openpgp import IOpenPGP
from memoryhole.gpg import Gnupg
def unwrap(msg, opengp=Gnupg()):
"""
Unwrap an email replacing and verifying memory hole headers.
:param msg: the email to be unwrapped
:type msg: Message
:param openpgp: the implementation of openpgp to use for decryption and/or
verification
:type openpgp: OpenPGP
:return: a decrypted email
:rtype: Message
"""
raise NotImplementedError()
__all__ = ["protect", "ProtectConfig", "unwrap", "IOpenPGP"]
|