shsInit(&shsInfo);
shsUpdate(&shsInfo, (const BYTE *) args[0], arglens[0]);
shsFinal(&shsInfo);
- safe_format(buff, bp, "%0lx%0lx%0lx%0lx%0lx", shsInfo.digest[0],
+ safe_format(buff, bp, "%0x%0x%0x%0x%0x", shsInfo.digest[0],
shsInfo.digest[1], shsInfo.digest[2], shsInfo.digest[3],
shsInfo.digest[4]);
#endif
shsInit(&shsInfo);
shsUpdate(&shsInfo, (const BYTE *) args[0], arglens[0]);
shsFinal(&shsInfo);
- safe_format(buff, bp, "%0lx%0lx%0lx%0lx%0lx", shsInfo.digest[0],
+ safe_format(buff, bp, "%0x%0x%0x%0x%0x", shsInfo.digest[0],
shsInfo.digest[1], shsInfo.digest[2], shsInfo.digest[3],
shsInfo.digest[4]);
} else {
shsInit(&shsInfo);
shsUpdate(&shsInfo, (const BYTE *) key, strlen(key));
shsFinal(&shsInfo);
- sprintf(crypt_buff, "XX%lu%lu", shsInfo.digest[0], shsInfo.digest[1]);
+ sprintf(crypt_buff, "XX%u%u", shsInfo.digest[0], shsInfo.digest[1]);
#endif
return crypt_buff;