12#ifndef BOTAN_CODE_BASED_UTIL_H_
13#define BOTAN_CODE_BASED_UTIL_H_
15#include <botan/internal/gf2m_small_m.h>
26 const uint16_t result = (tst != 0);
31 gf2m result = gray ^ (gray >> 8);
32 result ^= (result >> 4);
33 result ^= (result >> 2);
34 result ^= (result >> 1);
39 return (lex >> 1) ^ lex;
43 return (bit_size - 1) / 8 + 1;
47 return (bit_size - 1) / 32 + 1;
gf2m lex_to_gray(gf2m lex)
uint16_t expand_mask_16bit(T tst)
gf2m gray_to_lex(gf2m gray)
size_t bit_size_to_32bit_size(size_t bit_size)
size_t bit_size_to_byte_size(size_t bit_size)