Upgrade libtomcrypt

This commit is contained in:
2025-10-24 19:33:21 +03:00
parent d770dd8df3
commit acc69bb8ad
157 changed files with 922 additions and 761 deletions

View File

@@ -548,6 +548,15 @@ const char *crypt_build_settings =
" LTC_NO_ROLC "
#endif
#endif
#if defined(LTC_HAVE_ROTATE_BUILTIN)
" LTC_HAVE_ROTATE_BUILTIN "
#endif
#if defined(LTC_HAVE_CLZL_BUILTIN)
" LTC_HAVE_CLZL_BUILTIN "
#endif
#if defined(LTC_HAVE_CTZL_BUILTIN)
" LTC_HAVE_CTZL_BUILTIN "
#endif
#if defined(LTC_NO_TEST)
" LTC_NO_TEST "
#endif

View File

@@ -89,8 +89,13 @@ int register_all_hashes(void)
REGISTER_HASH(&blake2b_512_desc);
#endif
#ifdef LTC_CHC_HASH
REGISTER_HASH(&chc_desc);
LTC_ARGCHK(chc_register(find_cipher_any("aes", 8, 16)) == CRYPT_OK);
{
int aes_index = find_cipher_any("aes", 8, 16);
if (aes_index != -1) {
REGISTER_HASH(&chc_desc);
LTC_ARGCHK(chc_register(aes_index) == CRYPT_OK);
}
}
#endif
return CRYPT_OK;
}