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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/f/r/freebooks-HEAD/ledger.py   freebooks(Download)
# Man is this ugly
from crypto.asymencdata import ASymEncData
from crypto.asymenc import ASymEnc
from crypto.asymkey import ASymKey
from crypto.encresult import EncResult
                                 actions = actions,
                                 user = repr(self.current_user))
        ase = ASymEnc(self.current_user.key)
        sig = ase.sign(s2s)
        if not ase.verify(s2s, sig):
            if verify:
                user = self.cached_users[tx.commit.author]
                asc = ASymEnc(user.key)
                if not asc.verify(s2s, sig):
                    raise LedgerException("Commit %s has a bad sig" % tx.commit.id)

src/f/r/freebooks-HEAD/user.py   freebooks(Download)
# Man is this ugly
from crypto.asymencdata import ASymEncData
from crypto.asymenc import ASymEnc
from crypto.asymkey import ASymKey
from crypto.encresult import EncResult