Fix typos in comments

Backport from #1032
This commit is contained in:
Frank Denis 2021-02-12 17:19:07 +01:00
parent d5115e26c8
commit 9e625a0b2a
2 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ do { \
*/ \ */ \
MAKE4(RED_MUL_MID); \ 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, lo); \
tmp0 = _mm_xor_si128(tmp0, hi); \ tmp0 = _mm_xor_si128(tmp0, hi); \
tmp0 = _mm_xor_si128(tmp1, tmp0); \ tmp0 = _mm_xor_si128(tmp1, tmp0); \

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 * either 357 or 361 bytes. For this reason, when using sodium_malloc() to
* allocate a crypto_generichash_state structure, padding must be added in * allocate a crypto_generichash_state structure, padding must be added in
* order to ensure proper alignment. crypto_generichash_statebytes() * 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()); * state = sodium_malloc(crypto_generichash_statebytes());
*/ */