16 static uint32_t scrypt_ilog2(uint32_t n)
21 if (n < 2 || (n & (n - 1)))
25 while (((uint32_t)1 << t) < n)
36 #define SNPRINTF _snprintf 38 #define SNPRINTF snprintf 42 const char *hash,
char *mcf)
54 if(r > (uint8_t)(-1) || p > (uint8_t)(-1))
61 params = (r << 8) + p;
62 params += (uint32_t)t << 16;
int libscrypt_mcf(uint32_t N, uint32_t r, uint32_t p, const char *salt, const char *hash, char *mcf)