Arithmetic operation
SUB
SDK arithmetic calls and product compute flows that need encrypted subtraction.
Signature
| Raw symbols | FHE16_SUB |
|---|---|
| Example | int32_t* out = FHE16_SUB(a, b); |
Caller
SDK arithmetic calls and product compute flows that need encrypted subtraction.
Circuit Path
Homomorphic pathParallel prefix adder through FHE16_PREFIX_Templete with subtract=true.
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_SUB(a, b);
FHE16_Free(out);