PricingDemo
Log InGet API Key
Biometrics

Why Every Biometric Vendor Decrypts to Compare

|Eric Beans, CEO|14 min read

Every major biometric vendor in the world follows the same pattern: encrypt biometric templates at rest, decrypt them into plaintext for matching, then re-encrypt or discard the plaintext after comparison. This is not a security-driven design choice. It is a legacy of how biometric matching algorithms were originally designed, and the entire industry has accepted it as the only practical approach. It is not.

The decrypt-to-compare pattern creates an inherent vulnerability in every biometric system that uses it. For some window of time, however brief, the biometric template exists in plaintext in server memory. That window is the attack surface. Unlike a password which can be changed if compromised, a biometric template is permanent. Your fingerprint pattern, iris structure, and facial geometry do not change. A compromised biometric template is compromised forever, creating a permanent liability for every individual affected.

How Traditional Biometric Matching Works

A biometric template is a mathematical representation of a biological feature. For face recognition, this is typically a vector of 128 to 512 floating-point numbers extracted by a neural network. For fingerprint matching, it is a set of minutiae points with positions, angles, and types. For iris recognition, it is a binary code derived from the iris texture pattern. Matching compares two templates and produces a similarity score through operations that require numerical access to template values: cosine similarity requires multiplying and summing elements, Euclidean distance requires subtraction and squaring, and Hamming distance requires XOR operations.

None of these operations can be performed on data encrypted with traditional schemes like AES-256. The encryption must be removed before the math can happen. This fundamental constraint drives the decrypt-to-compare pattern across the entire biometric industry, from small startups to the largest identity verification providers in the world.

The Attack Surface of Decryption

The window between decryption and erasure is the vulnerability, and it is exploitable through multiple attack vectors. Memory dump attacks extract plaintext from compromised or physically accessed servers. Cold boot attacks recover memory contents even after power loss because DRAM retains data for seconds to minutes. Side-channel attacks through cache timing extract data from processes on shared cloud infrastructure. Insider threats from administrators with root access can attach debuggers to capture templates. Compromised server processes intercept plaintext between decryption and matching modules.

The industry response is defense-in-depth: restrict physical access, use secure enclaves, monitor for anomalies. These are good practices but they do not eliminate the fundamental vulnerability. The plaintext template still exists in memory during matching. The defenses are probabilistic barriers around a deterministic vulnerability that exists by design.

The FHE Alternative: Never Decrypt

Fully homomorphic encryption eliminates this vulnerability entirely by making decryption unnecessary for matching. FHE allows mathematical operations directly on encrypted data, producing encrypted results that match plaintext computation when decrypted by the key holder.

During enrollment, the user's biometric template is encrypted element-by-element using BFV homomorphic encryption on the client device before transmission. The encrypted template is stored on the server which never receives plaintext and never holds the decryption key. During authentication, a fresh biometric sample is encrypted on the client and sent to the server, which computes the match entirely in the encrypted domain using homomorphic inner products. The encrypted similarity score returns to the client for decryption and threshold comparison.

At no point does the server see plaintext biometric data. Enrollment template: encrypted. Probe template: encrypted. Intermediate products: encrypted. Similarity score: encrypted. The entire matching computation operates exclusively on ciphertexts.

Why BFV for Biometrics

H33 uses BFV specifically because it performs exact integer arithmetic. Unlike CKKS which introduces approximation errors, BFV produces exact results. For biometric matching where similarity scores determine accept/reject decisions, even small errors can push scores across decision thresholds causing false rejections or acceptances. BFV eliminates this risk entirely. BFV also supports SIMD batching where a single ciphertext holds thousands of values processed simultaneously, enabling H33 to batch 32 authentications per operation. And BFV's RLWE-based security provides inherent post-quantum resistance.

Production Performance

H33's BFV implementation processes 32 biometric authentications in approximately 943 microseconds on production hardware, roughly 30 microseconds per authentication. The total pipeline including FHE matching, post-quantum attestation, and ZKP generation completes in approximately 42 microseconds per authentication. This is faster than many traditional plaintext systems that include network round trips to backend matching services.

The Permanence Problem

The most compelling argument for never-decrypt matching is biometric permanence. The 2015 OPM breach exposed fingerprint records of 5.6 million federal employees. Those individuals cannot change their fingerprints. Their biometric data is permanently compromised. With H33, if a server is compromised, the attacker obtains ciphertexts computationally indistinguishable from random noise without the decryption key. The biometric data remains protected regardless of what happens to the server infrastructure.

This is not an incremental improvement over decrypt-to-compare. It is a fundamental elimination of the biometric data exposure risk that has defined the industry since its inception.

Secure Enclaves Are Not the Answer

Some vendors propose secure enclaves (Trusted Execution Environments, or TEEs) as an alternative to the decrypt-to-compare vulnerability. Intel SGX, ARM TrustZone, and AWS Nitro Enclaves create isolated execution environments where code and data are protected from the host operating system. The biometric template is decrypted inside the enclave, matching is performed, and the plaintext never exists outside the enclave boundary.

TEEs reduce the attack surface significantly but do not eliminate it. Side-channel attacks against Intel SGX have been demonstrated repeatedly: Spectre, Meltdown, Foreshadow, and Plundervolt all extract data from SGX enclaves through various hardware-level side channels. Each attack is eventually patched, but new variants continue to emerge. The security model of TEEs depends on the correctness of complex hardware implementations, which has proven to be an unreliable assumption over the past decade of side-channel research.

More fundamentally, TEEs still decrypt the biometric template. The plaintext exists in memory inside the enclave during matching. The enclave boundary provides a probabilistic defense (harder to attack than unprotected memory, but not impossible). FHE provides a mathematical guarantee: the plaintext never exists on the server at all, inside or outside any enclave. There is no side-channel attack against data that was never decrypted in the first place.

The Regulatory Trajectory

Biometric data is subject to increasingly strict regulation worldwide. The Illinois Biometric Information Privacy Act (BIPA) imposes penalties of up to $5,000 per violation for mishandling biometric data. The EU's GDPR classifies biometric data as a special category requiring explicit consent and enhanced protection. India's DPDPA, Brazil's LGPD, and numerous US state laws impose similar requirements with escalating penalties for breaches.

For traditional biometric systems, every authentication event creates a potential compliance exposure because the template is decrypted. The compliance burden scales with transaction volume: more authentications mean more decryption events, more potential exposure windows, and more regulatory risk. Organizations must maintain extensive logging, access control, and incident response procedures to demonstrate that plaintext biometric data is handled properly during every matching operation.

H33's FHE approach eliminates this compliance burden entirely. There is no plaintext biometric data on the server to mishandle. There is no decryption event to log. There is no exposure window to defend. The compliance posture is not that biometric data is well-protected during processing; it is that biometric data is never accessible during processing. This categorical difference dramatically simplifies regulatory compliance and reduces liability exposure for every organization that deploys FHE-based biometric authentication.

The Industry Transition

The biometric industry is beginning to recognize that decrypt-to-compare is an architectural debt that must be addressed. Major identity verification providers are exploring privacy-preserving matching techniques, including FHE, secure multiparty computation, and functional encryption. The transition will not happen overnight, but the direction is clear: the next generation of biometric systems will not decrypt templates for matching, because the technology to avoid it is now production-ready and the regulatory and security arguments against it are overwhelming.

H33 is not waiting for the industry to catch up. The production FHE biometric pipeline is live today, processing authentications at microsecond latency with zero plaintext exposure. Every authentication is attested with H33-74 three-family post-quantum signatures, providing mathematical proof that the match was performed correctly in the encrypted domain. This is not a research prototype or a future roadmap item. It is production infrastructure processing real biometric authentications for real users, today.

The Scale of the Vulnerability

To appreciate the scope of the decrypt-to-compare problem, consider the scale of biometric authentication worldwide. Apple Face ID processes over a billion authentication events daily across its device fleet. Government ID systems in India (Aadhaar), China, and the EU collectively authenticate hundreds of millions of users per day. Enterprise workforce authentication, airport border control, banking authentication, and healthcare access control add billions more annual events. Each of these authentication events, in systems that use the decrypt-to-compare pattern, creates a momentary plaintext exposure of biometric data that could be captured by any of the attack vectors described above.

The cumulative risk is staggering. Even if the probability of successful exploitation per individual authentication event is very low (say, one in a billion), the sheer volume of events means that breaches are statistically inevitable over time. The OPM breach, the Biostar 2 breach (which exposed 23 gigabytes of biometric data including fingerprints and facial recognition data for over a million users), and numerous smaller incidents demonstrate that this is not a theoretical risk but a regularly occurring reality.

H33's FHE approach reduces the per-event exploitation probability to effectively zero (conditioned on the hardness of the RLWE problem), regardless of the volume of authentication events. There is no plaintext to capture, no memory window to exploit, and no decryption event to intercept. The mathematical guarantee applies identically to the first authentication and the billionth, at the same security level, without degradation or accumulation of risk over time.

Match Without Exposing

H33 biometric authentication never decrypts your templates.

Get API Key Read the Docs
Verify It Yourself