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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
A Keyset represents a set of keys generated from a single master
secret.

src/m/i/mixminion-HEAD/lib/mixminion/BuildMessage.py   mixminion(Download)
        secrets2.reverse()
        for secret in secrets2:
            ks = Crypto.Keyset(secret)
            key = ks.getLionessKeys(Crypto.PAYLOAD_ENCRYPT_MODE)
            payload = Crypto.lioness_encrypt(payload, key)
    secrets1.reverse()
    for secret in secrets1:
        ks = Crypto.Keyset(secret)
        hkey = ks.getLionessKeys(Crypto.HEADER_ENCRYPT_MODE)
        pkey = ks.getLionessKeys(Crypto.PAYLOAD_ENCRYPT_MODE)

src/m/i/mixminion-HEAD/lib/mixminion/server/PacketHandler.py   mixminion(Download)
 
        # Get ready to generate packet keys.
        keys = Crypto.Keyset(subh.secret)
 
        # Replay prevention

src/m/i/mixminion-HEAD/lib/mixminion/testSupport.py   mixminion(Download)
def tvLIONESS():
    print "======================================== LIONESS"
    print "SPRP_Encrypt:"
    ks = mixminion.Crypto.Keyset("basic key")
    k1,k2,k3,k4=ks.getLionessKeys("A")