FHE relies on a technique called "garbled circuits"
Fully Homomorphic Encryption: A Groundbreaking Cryptographic Technique for Secure Data Processing