Review comments

This commit is contained in:
Tesfa Mael
2020-07-17 11:42:39 -07:00
parent 4cc7f9e4a9
commit 493510e2ea
2 changed files with 12 additions and 5 deletions

View File

@@ -23,6 +23,10 @@
DESCRIPTION DESCRIPTION
This library contains implementation for the ChaCha20 stream cipher. This library contains implementation for the ChaCha20 stream cipher.
Based from chacha-ref.c version 20080118
D. J. Bernstein
Public domain.
*/ */
#ifdef WOLFSSL_ARMASM #ifdef WOLFSSL_ARMASM
/* implementation is located in wolfcrypt/src/port/arm/armv8-chacha.c */ /* implementation is located in wolfcrypt/src/port/arm/armv8-chacha.c */

View File

@@ -23,6 +23,9 @@
DESCRIPTION DESCRIPTION
This library contains implementation for the Poly1305 authenticator. This library contains implementation for the Poly1305 authenticator.
Based off the public domain implementations by Andrew Moon
and Daniel J. Bernstein
*/ */
@@ -233,7 +236,7 @@ extern void poly1305_final_avx2(Poly1305* ctx, byte* mac);
p[1] = (byte)((v >> 8) & 0xff); p[1] = (byte)((v >> 8) & 0xff);
p[2] = (byte)((v >> 16) & 0xff); p[2] = (byte)((v >> 16) & 0xff);
p[3] = (byte)((v >> 24) & 0xff); p[3] = (byte)((v >> 24) & 0xff);
} }
#endif #endif
/* convert 32-bit unsigned to little endian 64 bit type as byte array */ /* convert 32-bit unsigned to little endian 64 bit type as byte array */