Constant operation
ADD_CONSTANT
Browser constants, SDK scalar arithmetic, fixed offset workflows.
Signature
| Raw symbols | FHE16_ADD_CONSTANT_Arr, FHE16_ADD_CONSTANT_I64, FHE16_ADD_CONSTANT_I32 |
|---|---|
| Example | int32_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
| Output | n-bit integer ciphertext. |
|---|---|
| Ownership | Returned ciphertext is caller-owned. |
| Implementation baseline | FHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp |
C Example
int32_t* out = FHE16_ADD_CONSTANT_I32(a, 7);
FHE16_Free(out);