Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/o/p/OpenPGP-0.2.3/src/openpgp/sap/api.py   OpenPGP(Download)
from openpgp.sap.exceptions import *
from list import list_as_signed, list_msgs, find_keys, find_key_prefs, deliteralize
from armory import looks_armored, list_armored, apply_armor
from pkt.Packet import create_Packet
        raise PGPError("Please specify encryption key by user ID, key ID or fingerprint.")
    keytargets = find_keys(keys, action='encrypt', **opts)
    literal = {'data': clrtxt, 'format': "b",
    keys = _filter_msgs(list_as_signed(key), MSG_KEYS)
    signers = find_keys(keys, action='sign', **opts)
    if 1 == len(signers):
                sigopts['target_key'] = target_key[1]
            targets = find_keys(targets, **opts)
            if targets:
        elif not signer_id: # try to verify unassigned sig !! not just else: !!
            matches = find_keys([key], action='sign')
            if matches: