waLLLnutFHE16 Docs

Selection operation

MAX

Auction, ranking, scoring, and private winner selection.

Signature

Raw symbolsFHE16_MAX
Exampleint32_t* out = FHE16_MAX(a, b);

Caller

Auction, ranking, scoring, and private winner selection.

Circuit Path

Homomorphic pathMAXorMIN with max flag, combining compare and encrypted selection.

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