12 #ifndef BOTAN_CODE_BASED_UTIL_H__
13 #define BOTAN_CODE_BASED_UTIL_H__
15 #include <botan/gf2m_small_m.h>
27 const uint16_t result = (tst != 0);
33 gf2m result = gray ^ (gray >> 8);
34 result ^= (result >> 4);
35 result ^= (result >> 2);
36 result ^= (result >> 1);
42 return (lex >> 1) ^ lex;
47 return (bit_size - 1) / 8 + 1;
52 return (bit_size - 1) / 32 + 1;
uint32_t bit_size_to_32bit_size(uint32_t bit_size)
uint32_t bit_size_to_byte_size(uint32_t bit_size)
gf2m gray_to_lex(gf2m gray)
gf2m lex_to_gray(gf2m lex)
uint16_t expand_mask_16bit(T tst)