PKEnc

Base class for public-key encryption

Notes: This class implements an interface for a standard public-key encryption scheme. A public key encryption consists of four algorithms: (paramgen, keygen, encrypt, decrypt).

class PKEnc.PKEnc[source]

Bases: charm.toolbox.schemebase.SchemeBase

checkProperty(schemeObj, _reqProps)[source]
decrypt(pk, sk, c)[source]
encrypt(pk, M)[source]
getProperty()[source]
keygen(securityparam)[source]
paramgen(param1=None, param2=None)[source]
printProperties()[source]
setProperty(secDef=None, assumption=None, messageSpace=None, secModel=None, **kwargs)[source]
updateProperty(scheme, secDef=None, assumption=None, messageSpace=None, secModel=None, **kwargs)[source]