Skip to content

Commit

Permalink
Make the AES pointer build and work again
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoStehlik committed Feb 5, 2022
1 parent ee75652 commit ff1f33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/slow-hash-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ STATIC INLINE void xor64(uint64_t *a, const uint64_t b)
__asm__("umulh %0, %1, %2\n\t" : "=r"(hi) : "r"(c[0]), "r"(b[0]));

#define pre_aes() \
j = a & mask; \
j = (*(uint32_t *)a) & mask; \
_c = vld1q_u8(&hp_state[j]); \
_a = vld1q_u8((const uint8_t *)a);

Expand All @@ -65,7 +65,7 @@ STATIC INLINE void xor64(uint64_t *a, const uint64_t b)
vst1q_u8((uint8_t *)c, _c); \
vst1q_u8(&hp_state[j], veorq_u8(_b, _c)); \
VARIANT1_1(&hp_state[j]); \
j = c & mask; \
j = (*(uint32_t *)c) & mask; \
p = U64(&hp_state[j]); \
b[0] = p[0]; \
b[1] = p[1]; \
Expand Down

0 comments on commit ff1f33a

Please sign in to comment.