waLLLnutFHE16 Docs

Constant operation

ADD_CONSTANT

Browser constants, SDK scalar arithmetic, fixed offset workflows.

Signature

Raw symbolsFHE16_ADD_CONSTANT_Arr, FHE16_ADD_CONSTANT_I64, FHE16_ADD_CONSTANT_I32
Exampleint32_t* out = FHE16_ADD_CONSTANT_I32(a, 7);

Caller

Browser constants, SDK scalar arithmetic, fixed offset workflows.

Circuit Path

Homomorphic pathPlaintext constant bits are folded into encrypted prefix-add path.

Input, Output, Ownership

Outputn-bit integer ciphertext.
OwnershipReturned ciphertext is caller-owned.
Implementation baselineFHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp

C Example

int32_t* out = FHE16_ADD_CONSTANT_I32(a, 7);
FHE16_Free(out);