waLLLnutFHE16 Docs

Division operation

UMOD

Advanced unsigned modulo with encrypted divisor.

Signature

Raw symbolsFHE16_UMOD
Exampleint32_t* out = FHE16_UMOD(a, b);

Caller

Advanced unsigned modulo with encrypted divisor.

Circuit Path

Homomorphic pathVariable unsigned division path returning remainder.

Input, Output, Ownership

OutputUnsigned 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_UMOD(a, b);
FHE16_Free(out);