|
ComputeFHE 1.0
General-Purpose Privacy-Preserving Computation Library for TFHE
|
Standard ALU implementation using fundamental FHE logic gates. More...
#include <ALUStandard.h>


Additional Inherited Members | |
Protected Attributes inherited from computefhe::BaseALU | |
| BinaryDigit | carry |
| ComputeFHE * | cfhe_base |
Standard ALU implementation using fundamental FHE logic gates.
Provides the baseline implementation for homomorphic arithmetic and logic operations using standard two-input gates.
|
virtual |
Addition: result = a + b.
Implements computefhe::BaseALU.
|
virtual |
Addition with Carry: result = a + b + carry.
Implements computefhe::BaseALU.
|
virtual |
Addition with Carry, but without updating internal carry.
Implements computefhe::BaseALU.
|
virtual |
Addition without updating internal carry.
Implements computefhe::BaseALU.
|
virtual |
Equal.
Implements computefhe::BaseALU.
|
virtual |
Signed Greater-Than.
Implements computefhe::BaseALU.
|
virtual |
|
virtual |
Signed Greater-Than or Equal.
Implements computefhe::BaseALU.
|
virtual |
Unsigned Greater-Than or Equal.
Implements computefhe::BaseALU.
|
virtual |
Signed Less-Than.
Implements computefhe::BaseALU.
|
virtual |
Unsigned Less-Than.
Implements computefhe::BaseALU.
|
virtual |
Signed Less-Than or Equal.
Implements computefhe::BaseALU.
|
virtual |
Unsigned Less-Than or Equal.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Not-Equal.
Implements computefhe::BaseALU.
|
virtual |
Ciphertext-Plaintext subtraction: result = a - pb.
Implements computefhe::BaseALU.
|
virtual |
Ciphertext-Plaintext subtraction with carry.
Implements computefhe::BaseALU.
|
virtual |
Ciphertext-Plaintext subtraction with carry, no update.
Implements computefhe::BaseALU.
|
virtual |
Ciphertext-Plaintext subtraction without updating internal carry.
Implements computefhe::BaseALU.
|
virtual |
Unsigned division, calculating quotient (q) and remainder (r).
Implements computefhe::BaseALU.
|
virtual |
1-bit full adder with explicit carry-in.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Performs full multiplication resulting in potentially larger bit-width.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Performs bitwise digit summation logic.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Majority gate: returns true if at least two inputs are true.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Multiplies two digits and adds a third, optionally returning carry out.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
|
virtual |
1-bit half adder.
Implements computefhe::BaseALU.
|
virtual |
1-bit half subtractor.
Implements computefhe::BaseALU.
|
virtual |
Standard multiplication (truncated to input width).
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Multiplexer for FixedPoint values: returns 'a' if 's' is true, else 'b'.
Implements computefhe::BaseALU.
|
virtual |
Arithmetic negation: result = -a.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Bitwise NOT.
Implements computefhe::BaseALU.
|
virtual |
Plaintext addition: result = a + pb.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Plaintext addition with carry.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Plaintext addition with carry, but no update to internal state.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Plaintext addition without updating internal carry.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Multiplication using Booth's algorithm with a plaintext constant.
Implements computefhe::BaseALU.
|
virtual |
Full multiplication by a plaintext constant.
Implements computefhe::BaseALU.
|
virtual |
Optimized full multiplication by a plaintext constant.
Implements computefhe::BaseALU.
|
virtual |
Standard multiplication by a plaintext constant.
Implements computefhe::BaseALU.
|
virtual |
Optimized standard multiplication by a plaintext constant.
Implements computefhe::BaseALU.
|
virtual |
Plaintext subtraction: result = pa - b.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Plaintext subtraction with carry.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Plaintext subtraction with carry, but no update to internal state.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Plaintext subtraction without updating internal carry.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Logical shift left.
Implements computefhe::BaseALU.
|
virtual |
Shift right (supports both logical and arithmetic/signed shifts).
Implements computefhe::BaseALU.
|
virtual |
Subtraction: result = a - b.
Implements computefhe::BaseALU.
|
virtual |
Subtraction with Borrow (!Carry): result = a - b - !carry.
Implements computefhe::BaseALU.
|
virtual |
Subtraction with Carry, but without updating internal carry.
Implements computefhe::BaseALU.
|
virtual |
Subtraction without updating internal carry.
Implements computefhe::BaseALU.
|
virtual |
Conditional swap of two bits if 'cond' is true.
Implements computefhe::BaseALU.
Reimplemented in computefhe::ALUOptimized.
|
virtual |
Conditional swap of two FixedPoint values if 'cond' is true.
Implements computefhe::BaseALU.
|
virtual |
Toggles the Most Significant Bit (useful for sign manipulation).
Implements computefhe::BaseALU.