klefki.crypto.elgamal

Module Contents

Classes

ElGamal

Functions

map_to_curve(m, G=Curve.G, bias=1)

map_from_curve(M)

klefki.crypto.elgamal.map_to_curve(m, G=Curve.G, bias=1)
klefki.crypto.elgamal.map_from_curve(M)
class klefki.crypto.elgamal.ElGamal(x, g=Curve.G)
classmethod encrypt(cls, m, pub)
classmethod decrypt(cls, x, c)
E(self, m)
D(self, c)