kyber_py.utilities package

Submodules

kyber_py.utilities.utils module

kyber_py.utilities.utils.bit_count(x: int) int

Count the number of bits in x

kyber_py.utilities.utils.select_bytes(a, b, cond)

Select between the bytes a or b depending on whether cond is False or True

kyber_py.utilities.utils.xor_bytes(a, b)

XOR two byte arrays, assume that they are of the same length

Module contents