waLLLnutFHE16 Docs

Division operation

SMOD

Advanced signed modulo with encrypted divisor.

Signature

Raw symbolsFHE16_SMOD
Exampleint32_t* out = FHE16_SMOD(a, b);

Caller

Advanced signed modulo with encrypted divisor.

Circuit Path

Homomorphic pathSigned division path returning signed remainder.

Input, Output, Ownership

OutputSigned remainder ciphertext.
OwnershipReturned ciphertext is caller-owned.
Implementation baselineFHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp

C Example

int32_t* out = FHE16_SMOD(a, b);
FHE16_Free(out);