Bitwise encryption hybrids #
Replace an initial segment of a word by zeros before encrypting its bits. A simulator samples the surrounding ciphertexts and inserts one challenge ciphertext at the selected coordinate. The exact distributional identities retain every other ciphertext and its independent encryption randomness. They also apply inside a larger randomized context.
Main definitions #
Cslib.Crypto.Homomorphic.Scheme.encryptBitsHybrid: encrypt a word with a zero prefix.Cslib.Crypto.Homomorphic.Scheme.spliceEncryptedBit: insert a bit-encryption challenge.
Main results #
Cslib.Crypto.Homomorphic.Scheme.eval_spliceEncryptedBit_original: the original bit gives the earlier adjacent hybrid.Cslib.Crypto.Homomorphic.Scheme.eval_spliceEncryptedBit_zero: a zero bit gives the next adjacent hybrid.
References #
Encrypt the zero prefix and the original suffix, inserting the supplied ciphertext between them. The challenge is already encrypted and is not encrypted again.
Instances For
The initial bit hybrid is the actual bitwise encryption sampler.
The final bit hybrid encrypts an equal-length zero word.
An encryption of the selected original bit supplies the earlier adjacent hybrid.
An encryption of zero supplies the next adjacent hybrid.