Cleanup poly1305 struct

This commit is contained in:
Juliusz Sosinowicz 2019-06-12 15:41:19 +02:00
parent c826c605a3
commit 71fe3313d3
2 changed files with 3 additions and 7 deletions

View File

@ -49,7 +49,7 @@
#endif
static WC_INLINE void poly1305_blocks_16(Poly1305* ctx, const unsigned char *m,
size_t bytes)
size_t bytes)
{
__asm__ __volatile__ (
"CMP %[bytes], %[POLY1305_BLOCK_SIZE] \n\t"

View File

@ -82,17 +82,13 @@ typedef struct Poly1305 {
unsigned char finished;
unsigned char started;
#else
#ifdef WOLFSSL_ARMASM
#if defined(WOLFSSL_ARMASM) && defined(__aarch64__)
ALIGN128 word32 r[5];
ALIGN128 word32 r_2[5]; // r^2
ALIGN128 word32 r_4[5]; // r^2
ALIGN128 word32 r_4[5]; // r^4
ALIGN128 word32 h[5];
word32 pad[4];
#if defined(POLY130564) // use predictable size of leftover
word64 leftover;
#else
word32 leftover;
#endif /* POLY130564 */
#else
#if defined(POLY130564)
word64 r[3];