PREnc

Base class for Proxy Re-Encryption

Notes: This class implements an interface for a standard proxy re-encryption scheme.

A proxy re-encryption scheme consists of six algorithms: (setup, keygen, encrypt, decrypt, rekeygen, re_encrypt).

class PREnc.PREnc[source]

Bases: charm.toolbox.schemebase.SchemeBase

decrypt(params, sk, ct)[source]
encrypt(params, pk, M)[source]
keygen(params)[source]
re_encrypt(params, rk, c_a)[source]
rekeygen(params, pk_a, sk_a, pk_b, sk_b)[source]
setup()[source]