Refactor, fixes, add api, tests.
authordrebs <drebs@leap.se>
Tue, 23 Apr 2013 23:50:02 +0000 (20:50 -0300)
committerdrebs <drebs@leap.se>
Tue, 23 Apr 2013 23:50:02 +0000 (20:50 -0300)
commit62b5a7798924188ba915a1c095917d8709e20ae7
tree8a9357f100da498cdcdc4152aa35626bdef585c5
parentb3ad976ec8aa64a00cc824dc57aa2135ab41deb6
Refactor, fixes, add api, tests.

* Change KeyTypeWrapper to EncryptionScheme
* Change OpenPGPWrapper to OpenPGPScheme
* Add missing and standardized crypto API.
* Add delete_key()
* Fix put_key raw so it puts either public or private keys.
* Fix gpg's is_encrypted()
* Fix openpgp's safe callbacks so they return correctly.
* Remove binascii because it generates invalid doc ids.
* Add tests.
src/leap/common/keymanager/__init__.py
src/leap/common/keymanager/errors.py
src/leap/common/keymanager/gpg.py
src/leap/common/keymanager/keys.py
src/leap/common/keymanager/openpgp.py
src/leap/common/keymanager/util.py
src/leap/common/tests/test_keymanager.py