mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Review comments
This commit is contained in:
@@ -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 */
|
||||||
|
@@ -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
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -229,11 +232,11 @@ extern void poly1305_final_avx2(Poly1305* ctx, byte* mac);
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void U32TO8(byte *p, word32 v) {
|
static void U32TO8(byte *p, word32 v) {
|
||||||
p[0] = (byte)((v ) & 0xff);
|
p[0] = (byte)((v ) & 0xff);
|
||||||
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 */
|
||||||
|
Reference in New Issue
Block a user