1/* LibTomCrypt, modular cryptographic library -- Tom St Denis 2 * 3 * LibTomCrypt is a library that provides various cryptographic 4 * algorithms in a highly modular and flexible manner. 5 * 6 * The library is free for all purposes without any express 7 * guarantee it works. 8 */ 9#include "tomcrypt.h" 10 11/** 12 @file pmac_ntz.c 13 PMAC implementation, internal function, by Tom St Denis 14*/ 15 16#ifdef LTC_PMAC 17 18/** 19 Internal PMAC function 20*/ 21int pmac_ntz(unsigned long x) 22{ 23 int c; 24 x &= 0xFFFFFFFFUL; 25 c = 0; 26 while ((x & 1) == 0) { 27 ++c; 28 x >>= 1; 29 } 30 return c; 31} 32 33#endif 34 35