Struct RingGSWCryptoParams::BaseGParams

Nested Relationships

This struct is a nested type of Class RingGSWCryptoParams.

Struct Documentation

struct lbcrypto::RingGSWCryptoParams::BaseGParams

Gadget parameters for one LWE secret-key index: the base, its digit count, and its gadget powers.

Public Members

uint32_t baseG = {0}

gadget base, a power of two

uint32_t digitsG = {0}

number of base-baseG digits needed to represent Q

uint32_t gBits = {0}

log2(baseG), the width of one digit in bits

const std::vector<NativeInteger> *gpow = {nullptr}

powers baseG^i mod Q for i < digitsG, owned by the params

uint32_t teamWidth = {0}

thread-team size for the external product: the largest 2(digitsG - 1) over all gadget bases in use