Skip to content

Commit c0c477c

Browse files
committed
Minor fixes
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 5be0854 commit c0c477c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/ciphers/aes/aesni.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const struct ltc_cipher_descriptor aesni_desc =
2929
#define temp_update(t, k) _mm_insert_epi32(t, k, 3)
3030
#define temp_invert(k) _mm_aesimc_si128(*((__m128i*)(k)))
3131

32-
32+
#define rcon aesni_rcon
3333
static const ulong32 rcon[] = {
3434
0x01UL, 0x02UL, 0x04UL, 0x08UL, 0x10UL, 0x20UL, 0x40UL, 0x80UL, 0x1BUL, 0x36UL
3535
};
@@ -370,5 +370,7 @@ int aesni_keysize(int *keysize)
370370
return CRYPT_OK;
371371
}
372372

373+
#undef rcon
374+
373375
#endif
374376

src/misc/crypt/crypt_find_hash_any.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
@param name The name of the hash desired
1313
@param digestlen The minimum length of the digest size (octets)
1414
@return >= 0 if found, -1 if not present
15-
*/int find_hash_any(const char *name, int digestlen)
15+
*/
16+
int find_hash_any(const char *name, int digestlen)
1617
{
1718
int x, y, z;
1819
LTC_ARGCHK(name != NULL);

tests/no_prng.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
22
/* SPDX-License-Identifier: Unlicense */
33

4-
#include "tomcrypt.h"
54
#include "tomcrypt_test.h"
65

76
/**

0 commit comments

Comments
 (0)