path: root/src/leap/keymanager/
diff options
authordrebs <>2013-11-04 15:09:40 -0200
committerdrebs <>2013-11-04 15:10:26 -0200
commit933731e4671c8ed3b7fa16bf1222e06f76eea215 (patch)
tree6d0fab57953d5bddc8a149548bd326754e3c1326 /src/leap/keymanager/
parenta22efb595cee79fbcab830d8024a173a6a68d6aa (diff)
Add verification of detached signatures.
Diffstat (limited to 'src/leap/keymanager/')
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/keymanager/ b/src/leap/keymanager/
index b8e88d4..ec1bfeb 100644
--- a/src/leap/keymanager/
+++ b/src/leap/keymanager/
@@ -340,15 +340,18 @@ class EncryptionScheme(object):
- def verify(self, data, pubkey):
+ def verify(self, data, pubkey, detached_sig=None):
- Verify signed C{data} with C{pubkey}.
+ Verify signed C{data} with C{pubkey}, eventually using
+ C{detached_sig}.
:param data: The data to be verified.
:type data: str
:param pubkey: The public key to be used on verification.
:type pubkey: EncryptionKey
+ :param detached_sig: A detached signature. If given, C{data} is
+ verified against this sdetached signature.
+ :type detached_sig: str
:return: The signed data.
:rtype: str