src: improve a few comments (#1032)

This commit is contained in:
Tobias Nießen
2021-02-12 17:13:22 +01:00
committed by GitHub
parent 758db56bf6
commit 219e74cc98
4 changed files with 7 additions and 7 deletions
@@ -364,7 +364,7 @@ mulv(__m128i A, __m128i B)
*/ \
MAKE4(RED_MUL_MID); \
\
/* substracts x1*h1 and x0*h0 */ \
/* subtracts x1*h1 and x0*h0 */ \
tmp0 = _mm_xor_si128(tmp0, lo); \
tmp0 = _mm_xor_si128(tmp0, hi); \
tmp0 = _mm_xor_si128(tmp1, tmp0); \
@@ -453,7 +453,7 @@ mulv(__m128i A, __m128i B)
*/ \
MAKE8(RED_MUL_MID); \
\
/* substracts x1*h1 and x0*h0 */ \
/* subtracts x1*h1 and x0*h0 */ \
tmp0 = _mm_xor_si128(tmp0, lo); \
tmp0 = _mm_xor_si128(tmp0, hi); \
tmp0 = _mm_xor_si128(tmp1, tmp0); \
@@ -28,7 +28,7 @@ crypto_secretbox_detached(unsigned char *c, unsigned char *mac,
crypto_core_hsalsa20(subkey, n, k, NULL);
/*
* Allow the m and and c buffer to partially overlap, by calling
* Allow the m and c buffers to partially overlap, by calling
* memmove() if necessary.
*
* Note that there is no fully portable way to compare pointers.
@@ -117,7 +117,7 @@ crypto_secretbox_open_detached(unsigned char *m, const unsigned char *c,
}
/*
* Allow the m and and c buffer to partially overlap, by calling
* Allow the m and c buffers to partially overlap, by calling
* memmove() if necessary.
*
* Note that there is no fully portable way to compare pointers.
@@ -32,7 +32,7 @@ crypto_secretbox_xchacha20poly1305_detached(unsigned char *c,
crypto_core_hchacha20(subkey, n, k, NULL);
/*
* Allow the m and and c buffer to partially overlap, by calling
* Allow the m and c buffers to partially overlap, by calling
* memmove() if necessary.
*
* Note that there is no fully portable way to compare pointers.
@@ -126,7 +126,7 @@ crypto_secretbox_xchacha20poly1305_open_detached(unsigned char *m,
}
/*
* Allow the m and and c buffer to partially overlap, by calling
* Allow the m and c buffers to partially overlap, by calling
* memmove() if necessary.
*
* Note that there is no fully portable way to compare pointers.
+1 -1
View File
@@ -134,7 +134,7 @@ int sodium_munlock(void * const addr, const size_t len)
* either 357 or 361 bytes. For this reason, when using sodium_malloc() to
* allocate a crypto_generichash_state structure, padding must be added in
* order to ensure proper alignment. crypto_generichash_statebytes()
* returns the rounded up structure size, and should be prefered to sizeof():
* returns the rounded up structure size, and should be preferred to sizeof():
* state = sodium_malloc(crypto_generichash_statebytes());
*/