5.1.1.7.1.2. FedEval.secure_protocols.finite_field

5.1.1.7.1.2.1. Module Contents

5.1.1.7.1.2.1.1. Classes

GaloisFieldParams

GaloisFieldNumber

class FedEval.secure_protocols.finite_field.GaloisFieldParams(p)
property p
property max_int
class FedEval.secure_protocols.finite_field.GaloisFieldNumber(encoding: int, exponent: int, gfp: GaloisFieldParams)
BASE = 16
LOG2_BASE
FLOAT_MANTISSA_BITS
FULL_PRECISION
classmethod encode(scalar, gfp: GaloisFieldParams, exponent=FULL_PRECISION)
decode()

Decode plaintext and return the result. :returns:

the decoded number. N.B. if the number

returned is an integer, it will not be of type float.

Return type:

an int or float

Raises:

OverflowError – if overflow is detected in the decrypted number.

decrease_exponent_to(new_exp)
__add__(other)
__iadd__(other)
__radd__(other)
__sub__(other)
__rsub__(other)
__mul__(other)
__rmul__(other)
__truediv__(other)
__rtruediv__(other)