diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-11-04 16:05:18 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-11-04 16:05:18 -0300 |
commit | e021b4236ffce9dfb6e302971e8d2f460b601bf3 (patch) | |
tree | cc27cb61d29a4165255c8ddd04b37ae4fd05d2b9 /src/leap/keymanager/keys.py | |
parent | a22efb595cee79fbcab830d8024a173a6a68d6aa (diff) | |
parent | 45f158060a4ed2f95a94d839a869a76a02d5ceab (diff) |
Merge remote-tracking branch 'drebs/feature/4375-add-verification-of-detached-sig' into develop
Diffstat (limited to 'src/leap/keymanager/keys.py')
-rw-r--r-- | src/leap/keymanager/keys.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/keymanager/keys.py b/src/leap/keymanager/keys.py index b8e88d46..ec1bfeb4 100644 --- a/src/leap/keymanager/keys.py +++ b/src/leap/keymanager/keys.py @@ -340,15 +340,18 @@ class EncryptionScheme(object): pass @abstractmethod - 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 |