Skip to main content

bitwise_or

Function bitwise_or 

Source
pub fn bitwise_or(spec: CiphertextSpec) -> Builder
Expand description

Creates an IR for bitwise OR of two encrypted integers.

The returned Builder declares two ciphertext inputs and one ciphertext output, where each output block is the bitwise OR of the corresponding input blocks. The operation is applied independently to every block pair, using a single programmable bootstrapping per block.

The spec parameter describes the integer encoding (bit-width, message bits, carry bits) and determines the number of blocks in the decomposition.

ยงExamples

let builder = bitwise_or(spec);
let ir = builder.into_ir();