Minor fixes

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel 2025-10-23 00:39:32 +02:00
parent ac291e8bdd
commit 5dbdaff16b
3 changed files with 5 additions and 3 deletions

View file

@ -29,7 +29,7 @@ const struct ltc_cipher_descriptor aesni_desc =
#define temp_update(t, k) _mm_insert_epi32(t, k, 3)
#define temp_invert(k) _mm_aesimc_si128(*((__m128i*)(k)))
#define rcon aesni_rcon
static const ulong32 rcon[] = {
0x01UL, 0x02UL, 0x04UL, 0x08UL, 0x10UL, 0x20UL, 0x40UL, 0x80UL, 0x1BUL, 0x36UL
};
@ -370,5 +370,7 @@ int aesni_keysize(int *keysize)
return CRYPT_OK;
}
#undef rcon
#endif

View file

@ -12,7 +12,8 @@
@param name The name of the hash desired
@param digestlen The minimum length of the digest size (octets)
@return >= 0 if found, -1 if not present
*/int find_hash_any(const char *name, int digestlen)
*/
int find_hash_any(const char *name, int digestlen)
{
int x, y, z;
LTC_ARGCHK(name != NULL);

View file

@ -1,7 +1,6 @@
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt.h"
#include "tomcrypt_test.h"
/**