Packages
ntru_elixir
0.0.0
libntru wrapper for elixir. NTRU is a post quantom cryptography algorithm.
Current section
Files
Jump to
Current section
Files
libntru/src/arith.c
#include "arith.h"
uint8_t ntru_log2(uint16_t n) {
uint8_t log = 0;
while (n > 1) {
n /= 2;
log++;
}
return log;
}