Adapt get_key() and send_key() to the spec.
[leap_pycommon.git] / src / leap / common / tests / test_keymanager.py
1 ## -*- coding: utf-8 -*-
2 # test_keymanager.py
3 # Copyright (C) 2013 LEAP
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19 """
20 Tests for the Key Manager.
21 """
22
23
24 from mock import Mock
25 try:
26     import simplejson as json
27 except ImportError:
28     import json  # noqa
29
30
31 from leap.common.testing.basetest import BaseLeapTest
32 from leap.soledad import Soledad
33 #from leap.soledad.crypto import SoledadCrypto
34
35 from leap.common.keymanager import (
36     KeyManager,
37     openpgp,
38     KeyNotFound,
39     NoPasswordGiven,
40     #TAGS_INDEX,
41     #TAGS_AND_PRIVATE_INDEX,
42 )
43 from leap.common.keymanager.openpgp import OpenPGPKey
44 from leap.common.keymanager.keys import (
45     is_address,
46     build_key_from_dict,
47     keymanager_doc_id,
48 )
49 from leap.common.keymanager import errors
50
51
52 ADDRESS = 'leap@leap.se'
53 ADDRESS_2 = 'anotheruser@leap.se'
54
55
56 class KeyManagerUtilTestCase(BaseLeapTest):
57
58     def setUp(self):
59         pass
60
61     def tearDown(self):
62         pass
63
64     def test_is_address(self):
65         self.assertTrue(
66             is_address('user@leap.se'),
67             'Incorrect address detection.')
68         self.assertFalse(
69             is_address('userleap.se'),
70             'Incorrect address detection.')
71         self.assertFalse(
72             is_address('user@'),
73             'Incorrect address detection.')
74         self.assertFalse(
75             is_address('@leap.se'),
76             'Incorrect address detection.')
77
78     def test_build_key_from_dict(self):
79         kdict = {
80             'address': ADDRESS,
81             'key_id': 'key_id',
82             'fingerprint': 'fingerprint',
83             'key_data': 'key_data',
84             'private': 'private',
85             'length': 'length',
86             'expiry_date': 'expiry_date',
87             'first_seen_at': 'first_seen_at',
88             'last_audited_at': 'last_audited_at',
89             'validation': 'validation',
90         }
91         key = build_key_from_dict(OpenPGPKey, ADDRESS, kdict)
92         self.assertEqual(
93             kdict['address'], key.address,
94             'Wrong data in key.')
95         self.assertEqual(
96             kdict['key_id'], key.key_id,
97             'Wrong data in key.')
98         self.assertEqual(
99             kdict['fingerprint'], key.fingerprint,
100             'Wrong data in key.')
101         self.assertEqual(
102             kdict['key_data'], key.key_data,
103             'Wrong data in key.')
104         self.assertEqual(
105             kdict['private'], key.private,
106             'Wrong data in key.')
107         self.assertEqual(
108             kdict['length'], key.length,
109             'Wrong data in key.')
110         self.assertEqual(
111             kdict['expiry_date'], key.expiry_date,
112             'Wrong data in key.')
113         self.assertEqual(
114             kdict['first_seen_at'], key.first_seen_at,
115             'Wrong data in key.')
116         self.assertEqual(
117             kdict['last_audited_at'], key.last_audited_at,
118             'Wrong data in key.')
119         self.assertEqual(
120             kdict['validation'], key.validation,
121             'Wrong data in key.')
122
123     def test_keymanager_doc_id(self):
124         doc_id1 = keymanager_doc_id(
125             OpenPGPKey, ADDRESS, private=False)
126         doc_id2 = keymanager_doc_id(
127             OpenPGPKey, ADDRESS, private=True)
128         doc_id3 = keymanager_doc_id(
129             OpenPGPKey, 'user@leap.se', private=False)
130         doc_id4 = keymanager_doc_id(
131             OpenPGPKey, 'user@leap.se', private=True)
132         self.assertFalse(doc_id1 == doc_id2, 'Doc ids are equal!')
133         self.assertFalse(doc_id1 == doc_id3, 'Doc ids are equal!')
134         self.assertFalse(doc_id1 == doc_id4, 'Doc ids are equal!')
135         self.assertFalse(doc_id2 == doc_id3, 'Doc ids are equal!')
136         self.assertFalse(doc_id2 == doc_id4, 'Doc ids are equal!')
137         self.assertFalse(doc_id3 == doc_id4, 'Doc ids are equal!')
138
139
140 class KeyManagerWithSoledadTestCase(BaseLeapTest):
141
142     def setUp(self):
143         # mock key fetching and storing so Soledad doesn't fail when trying to
144         # reach the server.
145         Soledad._get_secrets_from_shared_db = Mock(return_value=None)
146         Soledad._put_secrets_in_shared_db = Mock(return_value=None)
147
148         self._soledad = Soledad(
149             "leap@leap.se",
150             "123456",
151             self.tempdir+"/secret.gpg",
152             self.tempdir+"/soledad.u1db",
153             '',
154             None,
155             auth_token=None,
156         )
157
158     def tearDown(self):
159         km = self._key_manager()
160         for key in km.get_all_keys_in_local_db():
161             km._wrapper_map[key.__class__].delete_key(key)
162         for key in km.get_all_keys_in_local_db(private=True):
163             km._wrapper_map[key.__class__].delete_key(key)
164
165     def _key_manager(self, user=ADDRESS, url=''):
166         return KeyManager(user, url, self._soledad)
167
168
169 class OpenPGPCryptoTestCase(KeyManagerWithSoledadTestCase):
170
171     def _test_openpgp_gen_key(self):
172         pgp = openpgp.OpenPGPScheme(self._soledad)
173         self.assertRaises(KeyNotFound, pgp.get_key, 'user@leap.se')
174         key = pgp.gen_key('user@leap.se')
175         self.assertIsInstance(key, openpgp.OpenPGPKey)
176         self.assertEqual(
177             'user@leap.se', key.address, 'Wrong address bound to key.')
178         self.assertEqual(
179             '4096', key.length, 'Wrong key length.')
180
181     def test_openpgp_put_delete_key(self):
182         pgp = openpgp.OpenPGPScheme(self._soledad)
183         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
184         pgp.put_ascii_key(PUBLIC_KEY)
185         key = pgp.get_key(ADDRESS, private=False)
186         pgp.delete_key(key)
187         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
188
189     def test_openpgp_put_ascii_key(self):
190         pgp = openpgp.OpenPGPScheme(self._soledad)
191         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
192         pgp.put_ascii_key(PUBLIC_KEY)
193         key = pgp.get_key(ADDRESS, private=False)
194         self.assertIsInstance(key, openpgp.OpenPGPKey)
195         self.assertEqual(
196             ADDRESS, key.address, 'Wrong address bound to key.')
197         self.assertEqual(
198             '4096', key.length, 'Wrong key length.')
199         pgp.delete_key(key)
200         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
201
202     def test_get_public_key(self):
203         pgp = openpgp.OpenPGPScheme(self._soledad)
204         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
205         pgp.put_ascii_key(PUBLIC_KEY)
206         self.assertRaises(
207             KeyNotFound, pgp.get_key, ADDRESS, private=True)
208         key = pgp.get_key(ADDRESS, private=False)
209         self.assertEqual(ADDRESS, key.address)
210         self.assertFalse(key.private)
211         self.assertEqual(KEY_FINGERPRINT, key.fingerprint)
212         pgp.delete_key(key)
213         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
214
215     def test_openpgp_encrypt_decrypt_asym(self):
216         # encrypt
217         pgp = openpgp.OpenPGPScheme(self._soledad)
218         pgp.put_ascii_key(PUBLIC_KEY)
219         pubkey = pgp.get_key(ADDRESS, private=False)
220         cyphertext = openpgp.encrypt_asym('data', pubkey)
221         # assert
222         self.assertTrue(cyphertext is not None)
223         self.assertTrue(cyphertext != '')
224         self.assertTrue(cyphertext != 'data')
225         self.assertTrue(openpgp.is_encrypted_asym(cyphertext))
226         self.assertFalse(openpgp.is_encrypted_sym(cyphertext))
227         self.assertTrue(openpgp.is_encrypted(cyphertext))
228         # decrypt
229         self.assertRaises(
230             KeyNotFound, pgp.get_key, ADDRESS, private=True)
231         pgp.put_ascii_key(PRIVATE_KEY)
232         privkey = pgp.get_key(ADDRESS, private=True)
233         plaintext = openpgp.decrypt_asym(cyphertext, privkey)
234         pgp.delete_key(pubkey)
235         pgp.delete_key(privkey)
236         self.assertRaises(
237             KeyNotFound, pgp.get_key, ADDRESS, private=False)
238         self.assertRaises(
239             KeyNotFound, pgp.get_key, ADDRESS, private=True)
240
241     def test_openpgp_encrypt_decrypt_sym(self):
242         cyphertext = openpgp.encrypt_sym(
243             'data', passphrase='pass')
244         self.assertTrue(cyphertext is not None)
245         self.assertTrue(cyphertext != '')
246         self.assertTrue(cyphertext != 'data')
247         self.assertTrue(openpgp.is_encrypted_sym(cyphertext))
248         self.assertFalse(openpgp.is_encrypted_asym(cyphertext))
249         self.assertTrue(openpgp.is_encrypted(cyphertext))
250         plaintext = openpgp.decrypt_sym(
251             cyphertext, passphrase='pass')
252         self.assertEqual('data', plaintext)
253
254     def test_verify_with_private_raises(self):
255         pgp = openpgp.OpenPGPScheme(self._soledad)
256         pgp.put_ascii_key(PRIVATE_KEY)
257         data = 'data'
258         privkey = pgp.get_key(ADDRESS, private=True)
259         signed = openpgp.sign(data, privkey)
260         self.assertRaises(
261             AssertionError,
262             openpgp.verify, signed, privkey)
263
264     def test_sign_with_public_raises(self):
265         pgp = openpgp.OpenPGPScheme(self._soledad)
266         pgp.put_ascii_key(PUBLIC_KEY)
267         data = 'data'
268         pubkey = pgp.get_key(ADDRESS, private=False)
269         self.assertRaises(
270             AssertionError,
271             openpgp.sign, data, pubkey)
272
273     def test_verify_with_wrong_key_raises(self):
274         pgp = openpgp.OpenPGPScheme(self._soledad)
275         pgp.put_ascii_key(PRIVATE_KEY)
276         data = 'data'
277         privkey = pgp.get_key(ADDRESS, private=True)
278         signed = openpgp.sign(data, privkey)
279         pgp.put_ascii_key(PUBLIC_KEY_2)
280         wrongkey = pgp.get_key(ADDRESS_2)
281         self.assertRaises(
282             errors.InvalidSignature,
283             openpgp.verify, signed, wrongkey)
284
285     def test_encrypt_asym_sign_with_public_raises(self):
286         pgp = openpgp.OpenPGPScheme(self._soledad)
287         pgp.put_ascii_key(PRIVATE_KEY)
288         data = 'data'
289         privkey = pgp.get_key(ADDRESS, private=True)
290         pubkey = pgp.get_key(ADDRESS, private=False)
291         self.assertRaises(
292             AssertionError,
293             openpgp.encrypt_asym, data, privkey, sign=pubkey)
294
295     def test_encrypt_sym_sign_with_public_raises(self):
296         pgp = openpgp.OpenPGPScheme(self._soledad)
297         pgp.put_ascii_key(PUBLIC_KEY)
298         data = 'data'
299         pubkey = pgp.get_key(ADDRESS, private=False)
300         self.assertRaises(
301             AssertionError,
302             openpgp.encrypt_sym, data, passphrase='123', sign=pubkey)
303
304     def test_decrypt_asym_verify_with_private_raises(self):
305         pgp = openpgp.OpenPGPScheme(self._soledad)
306         pgp.put_ascii_key(PRIVATE_KEY)
307         data = 'data'
308         privkey = pgp.get_key(ADDRESS, private=True)
309         pubkey = pgp.get_key(ADDRESS, private=False)
310         encrypted_and_signed = openpgp.encrypt_asym(
311             data, pubkey, sign=privkey)
312         self.assertRaises(
313             AssertionError,
314             openpgp.decrypt_asym,
315             encrypted_and_signed, privkey, verify=privkey)
316
317     def test_decrypt_asym_verify_with_wrong_key_raises(self):
318         pgp = openpgp.OpenPGPScheme(self._soledad)
319         pgp.put_ascii_key(PRIVATE_KEY)
320         data = 'data'
321         privkey = pgp.get_key(ADDRESS, private=True)
322         pubkey = pgp.get_key(ADDRESS, private=False)
323         encrypted_and_signed = openpgp.encrypt_asym(data, pubkey, sign=privkey)
324         pgp.put_ascii_key(PUBLIC_KEY_2)
325         wrongkey = pgp.get_key(ADDRESS_2)
326         self.assertRaises(
327             errors.InvalidSignature,
328             openpgp.verify, encrypted_and_signed, wrongkey)
329
330     def test_decrypt_sym_verify_with_private_raises(self):
331         pgp = openpgp.OpenPGPScheme(self._soledad)
332         pgp.put_ascii_key(PRIVATE_KEY)
333         data = 'data'
334         privkey = pgp.get_key(ADDRESS, private=True)
335         encrypted_and_signed = openpgp.encrypt_sym(data, '123', sign=privkey)
336         pgp.put_ascii_key(PUBLIC_KEY_2)
337         wrongkey = pgp.get_key(ADDRESS_2)
338         self.assertRaises(
339             errors.InvalidSignature,
340             openpgp.verify, encrypted_and_signed, wrongkey)
341
342     def test_sign_verify(self):
343         pgp = openpgp.OpenPGPScheme(self._soledad)
344         pgp.put_ascii_key(PRIVATE_KEY)
345         data = 'data'
346         privkey = pgp.get_key(ADDRESS, private=True)
347         signed = openpgp.sign(data, privkey)
348         pubkey = pgp.get_key(ADDRESS, private=False)
349         self.assertTrue(openpgp.verify(signed, pubkey))
350
351     def test_encrypt_asym_sign_decrypt_verify(self):
352         pgp = openpgp.OpenPGPScheme(self._soledad)
353         pgp.put_ascii_key(PRIVATE_KEY)
354         pubkey = pgp.get_key(ADDRESS, private=False)
355         privkey = pgp.get_key(ADDRESS, private=True)
356         pgp.put_ascii_key(PRIVATE_KEY_2)
357         pubkey2 = pgp.get_key(ADDRESS_2, private=False)
358         privkey2 = pgp.get_key(ADDRESS_2, private=True)
359         data = 'data'
360         encrypted_and_signed = openpgp.encrypt_asym(
361             data, pubkey2, sign=privkey)
362         res = openpgp.decrypt_asym(
363             encrypted_and_signed, privkey2, verify=pubkey)
364         self.assertTrue(data, res)
365
366     def test_encrypt_sym_sign_decrypt_verify(self):
367         pgp = openpgp.OpenPGPScheme(self._soledad)
368         pgp.put_ascii_key(PRIVATE_KEY)
369         data = 'data'
370         privkey = pgp.get_key(ADDRESS, private=True)
371         pubkey = pgp.get_key(ADDRESS, private=False)
372         encrypted_and_signed = openpgp.encrypt_sym(data, '123', sign=privkey)
373         res = openpgp.decrypt_sym(
374             encrypted_and_signed, '123', verify=pubkey)
375         self.assertEqual(data, res)
376
377
378 class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
379
380     def test_get_all_keys_in_db(self):
381         km = self._key_manager()
382         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
383         # get public keys
384         keys = km.get_all_keys_in_local_db(False)
385         self.assertEqual(len(keys), 1, 'Wrong number of keys')
386         self.assertEqual(ADDRESS, keys[0].address)
387         self.assertFalse(keys[0].private)
388         # get private keys
389         keys = km.get_all_keys_in_local_db(True)
390         self.assertEqual(len(keys), 1, 'Wrong number of keys')
391         self.assertEqual(ADDRESS, keys[0].address)
392         self.assertTrue(keys[0].private)
393
394     def test_get_public_key(self):
395         km = self._key_manager()
396         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
397         # get the key
398         key = km.get_key(ADDRESS, OpenPGPKey, private=False,
399                          fetch_remote=False)
400         self.assertTrue(key is not None)
401         self.assertEqual(key.address, ADDRESS)
402         self.assertEqual(
403             key.fingerprint.lower(),  KEY_FINGERPRINT.lower())
404         self.assertFalse(key.private)
405
406     def test_get_private_key(self):
407         km = self._key_manager()
408         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
409         # get the key
410         key = km.get_key(ADDRESS, OpenPGPKey, private=True,
411                          fetch_remote=False)
412         self.assertTrue(key is not None)
413         self.assertEqual(key.address, ADDRESS)
414         self.assertEqual(
415             key.fingerprint.lower(), KEY_FINGERPRINT.lower())
416         self.assertTrue(key.private)
417
418     def test_send_key_raises_key_not_found(self):
419         km = self._key_manager()
420         self.assertRaises(
421             KeyNotFound,
422             km.send_key, OpenPGPKey)
423
424     def test_send_key(self):
425         """
426         Test that request is well formed when sending keys to server.
427         """
428         km = self._key_manager()
429         km._wrapper_map[OpenPGPKey].put_ascii_key(PUBLIC_KEY)
430         km._fetcher.put = Mock()
431         # the following data will be used on the send
432         km.ca_cert_path = 'capath'
433         km.session_id = 'sessionid'
434         km.uid = 'myuid'
435         km.api_uri = 'apiuri'
436         km.api_version = 'apiver'
437         km.send_key(OpenPGPKey)
438         # setup expected args
439         data = {
440             km.PUBKEY_KEY: km.get_key(km._address, OpenPGPKey).key_data,
441         }
442         url = '%s/%s/users/%s.json' % ('apiuri', 'apiver', 'myuid')
443         km._fetcher.put.assert_called_once_with(
444             url, data=data, verify='capath',
445             cookies={'_session_id': 'sessionid'},
446         )
447
448     def test__fetch_keys_from_server(self):
449         """
450         Test that the request is well formed when fetching keys from server.
451         """
452         km = self._key_manager(url='http://nickserver.domain')
453
454         class Response(object):
455             status_code = 200
456             headers = {'content-type': 'application/json'}
457
458             def json(self):
459                 return {'address': ADDRESS_2, 'openpgp': PUBLIC_KEY_2}
460
461             def raise_for_status(self):
462                 pass
463
464         # mock the fetcher so it returns the key for ADDRESS_2
465         km._fetcher.get = Mock(
466             return_value=Response())
467         km.ca_cert_path = 'cacertpath'
468         # do the fetch
469         km._fetch_keys_from_server(ADDRESS_2)
470         # and verify the call
471         km._fetcher.get.assert_called_once_with(
472             'http://nickserver.domain',
473             data={'address': ADDRESS_2},
474             verify='cacertpath',
475         )
476
477     def test_refresh_keys_does_not_refresh_own_key(self):
478         """
479         Test that refreshing keys will not attempt to refresh our own key.
480         """
481         km = self._key_manager()
482         # we add 2 keys but we expect it to only refresh the second one.
483         km._wrapper_map[OpenPGPKey].put_ascii_key(PUBLIC_KEY)
484         km._wrapper_map[OpenPGPKey].put_ascii_key(PUBLIC_KEY_2)
485         # mock the key fetching
486         km._fetch_keys_from_server = Mock(return_value=[])
487         km.ca_cert_path = ''  # some bogus path so the km does not complain.
488         # do the refreshing
489         km.refresh_keys()
490         km._fetch_keys_from_server.assert_called_once_with(
491             ADDRESS_2
492         )
493
494     def test_get_key_fetches_from_server(self):
495         """
496         Test that getting a key successfuly fetches from server.
497         """
498         km = self._key_manager(url='http://nickserver.domain')
499
500         class Response(object):
501             status_code = 200
502             headers = {'content-type': 'application/json'}
503
504             def json(self):
505                 return {'address': ADDRESS_2, 'openpgp': PUBLIC_KEY_2}
506
507             def raise_for_status(self):
508                 pass
509
510         # mock the fetcher so it returns the key for ADDRESS_2
511         km._fetcher.get = Mock(return_value=Response())
512         km.ca_cert_path = 'cacertpath'
513         # try to key get without fetching from server
514         self.assertRaises(
515             KeyNotFound, km.get_key, ADDRESS_2, OpenPGPKey,
516             fetch_remote=False
517         )
518         # try to get key fetching from server.
519         key = km.get_key(ADDRESS_2, OpenPGPKey)
520         self.assertIsInstance(key, OpenPGPKey)
521         self.assertEqual(ADDRESS_2, key.address)
522
523
524 # Key material for testing
525
526 # key 24D18DDF: public key "Leap Test Key <leap@leap.se>"
527 KEY_FINGERPRINT = "E36E738D69173C13D709E44F2F455E2824D18DDF"
528 PUBLIC_KEY = """
529 -----BEGIN PGP PUBLIC KEY BLOCK-----
530 Version: GnuPG v1.4.10 (GNU/Linux)
531
532 mQINBFC9+dkBEADNRfwV23TWE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18lnhzCXlaw6EAtbA7CUwsD3CTPR56aAXFK
565 3I7KXOVAqggrvMe5Tpdg5drfYpI8hZovL5aAgb+7Y5ta10TcJdUhS5K3kFAWe/td
566 U0cmWUMDP1UMSQ5Jg6JIQVWhSwARAQABiQIfBBgBCAAJBQJQvfnZAhsMAAoJEC9F
567 Xigk0Y3fRwsP/i0ElYCyxeLpWJTwo1iCLkMKz2yX1lFVa9nT1BVTPOQwr/IAc5OX
568 NdtbJ14fUsKL5pWgW8OmrXtwZm1y4euI1RPWWubG01ouzwnGzv26UcuHeqC5orZj
569 cOnKtL40y8VGMm8LoicVkRJH8blPORCnaLjdOtmA3rx/v2EXrJpSa3AhOy0ZSRXk
570 ZSrK68AVNwamHRoBSYyo0AtaXnkPX4+tmO8X8BPfj125IljubvwZPIW9VWR9UqCE
571 VPfDR1XKegVb6VStIywF7kmrknM1C5qUY28rdZYWgKorw01hBGV4jTW0cqde3N51
572 XT1jnIAa+NoXUM9uQoGYMiwrL7vNsLlyyiW5ayDyV92H/rIuiqhFgbJsHTlsm7I8
573 oGheR784BagAA1NIKD1qEO9T6Kz9lzlDaeWS5AUKeXrb7ZJLI1TTCIZx5/DxjLqM
574 Tt/RFBpVo9geZQrvLUqLAMwdaUvDXC2c6DaCPXTh65oCZj/hqzlJHH+RoTWWzKI+
575 BjXxgUWF9EmZUBrg68DSmI+9wuDFsjZ51BcqvJwxyfxtTaWhdoYqH/UQS+D1FP3/
576 diZHHlzwVwPICzM9ooNTgbrcDzyxRkIVqsVwBq7EtzcvgYUyX53yG25Giy6YQaQ2
577 ZtQ/VymwFL3XdUWV6B/hU4PVAFvO3qlOtdJ6TpE+nEWgcWjCv5g7RjXX
578 =MuOY
579 -----END PGP PUBLIC KEY BLOCK-----
580 """
581 PRIVATE_KEY = """
582 -----BEGIN PGP PRIVATE KEY BLOCK-----
583 Version: GnuPG v1.4.10 (GNU/Linux)
584
585 lQcYBFC9+dkBEADNRfwV23TWEoGc/x0wWH1P7PlXt8MnC2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NKYj73C4MWyNnnUFyq8nDHJ/G1NpaF2hiof9RBL4PUU/f92JkceXPBXA8gL
683 Mz2ig1OButwPPLFGQhWqxXAGrsS3Ny+BhTJfnfIbbkaLLphBpDZm1D9XKbAUvdd1
684 RZXoH+FTg9UAW87eqU610npOkT6cRaBxaMK/mDtGNdc=
685 =JTFu
686 -----END PGP PRIVATE KEY BLOCK-----
687 """
688
689 # key 7FEE575A: public key "anotheruser <anotheruser@leap.se>"
690 PUBLIC_KEY_2 = """
691 -----BEGIN PGP PUBLIC KEY BLOCK-----
692 Version: GnuPG v1.4.10 (GNU/Linux)
693
694 mI0EUYwJXgEEAMbTKHuPJ5/Gk34l9Z06f+0WCXTDXdte1UBoDtZ1erAbudgC4MOR
695 gquKqoj3Hhw0/ILqJ88GcOJmKK/bEoIAuKaqlzDF7UAYpOsPZZYmtRfPC2pTCnXq
696 Z1vdeqLwTbUspqXflkCkFtfhGKMq5rH8GV5a3tXZkRWZhdNwhVXZagC3ABEBAAG0
697 IWFub3RoZXJ1c2VyIDxhbm90aGVydXNlckBsZWFwLnNlPoi4BBMBAgAiBQJRjAle
698 AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRB/nfpof+5XWotuA/4tLN4E
699 gUr7IfLy2HkHAxzw7A4rqfMN92DIM9mZrDGaWRrOn3aVF7VU1UG7MDkHfPvp/cFw
700 ezoCw4s4IoHVc/pVlOkcHSyt4/Rfh248tYEJmFCJXGHpkK83VIKYJAithNccJ6Q4
701 JE/o06Mtf4uh/cA1HUL4a4ceqUhtpLJULLeKo7iNBFGMCV4BBADsyQI7GR0wSAxz
702 VayLjuPzgT+bjbFeymIhjuxKIEwnIKwYkovztW+4bbOcQs785k3Lp6RzvigTpQQt
703 Z/hwcLOqZbZw8t/24+D+Pq9mMP2uUvCFFqLlVvA6D3vKSQ/XNN+YB919WQ04jh63
704 yuRe94WenT1RJd6xU1aaUff4rKizuQARAQABiJ8EGAECAAkFAlGMCV4CGwwACgkQ
705 f536aH/uV1rPZQQAqCzRysOlu8ez7PuiBD4SebgRqWlxa1TF1ujzfLmuPivROZ2X
706 Kw5aQstxgGSjoB7tac49s0huh4X8XK+BtJBfU84JS8Jc2satlfwoyZ35LH6sDZck
707 I+RS/3we6zpMfHs3vvp9xgca6ZupQxivGtxlJs294TpJorx+mFFqbV17AzQ=
708 =Thdu
709 -----END PGP PUBLIC KEY BLOCK-----
710 """
711
712 PRIVATE_KEY_2 = """
713 -----BEGIN PGP PRIVATE KEY BLOCK-----
714 Version: GnuPG v1.4.10 (GNU/Linux)
715
716 lQHYBFGMCV4BBADG0yh7jyefxpN+JfWdOn/tFgl0w13bXtVAaA7WdXqwG7nYAuDD
717 kYKriqqI9x4cNPyC6ifPBnDiZiiv2xKCALimqpcwxe1AGKTrD2WWJrUXzwtqUwp1
718 6mdb3Xqi8E21LKal35ZApBbX4RijKuax/BleWt7V2ZEVmYXTcIVV2WoAtwARAQAB
719 AAP7BLuSAx7tOohnimEs74ks8l/L6dOcsFQZj2bqs4AoY3jFe7bV0tHr4llypb/8
720 H3/DYvpf6DWnCjyUS1tTnXSW8JXtx01BUKaAufSmMNg9blKV6GGHlT/Whe9uVyks
721 7XHk/+9mebVMNJ/kNlqq2k+uWqJohzC8WWLRK+d1tBeqDsECANZmzltPaqUsGV5X
722 C3zszE3tUBgptV/mKnBtopKi+VH+t7K6fudGcG+bAcZDUoH/QVde52mIIjjIdLje
723 uajJuHUCAO1mqh+vPoGv4eBLV7iBo3XrunyGXiys4a39eomhxTy3YktQanjjx+ty
724 GltAGCs5PbWGO6/IRjjvd46wh53kzvsCAO0J97gsWhzLuFnkxFAJSPk7RRlyl7lI
725 1XS/x0Og6j9XHCyY1OYkfBm0to3UlCfkgirzCYlTYObCofzdKFIPDmSqHbQhYW5v
726 dGhlcnVzZXIgPGFub3RoZXJ1c2VyQGxlYXAuc2U+iLgEEwECACIFAlGMCV4CGwMG
727 CwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEH+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745 -----END PGP PRIVATE KEY BLOCK-----
746 """
747 import unittest
748 if __name__ == "__main__":
749     unittest.main()