From 9e625a0b2ac73611552d9f1c1a400b2ed3da8858 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 12 Feb 2021 17:19:07 +0100 Subject: [PATCH] Fix typos in comments Backport from #1032 --- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 2 +- src/libsodium/include/sodium/utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index 69707a68..8e4b7f2b 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -365,7 +365,7 @@ do { \ */ \ 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); \ diff --git a/src/libsodium/include/sodium/utils.h b/src/libsodium/include/sodium/utils.h index ac801512..f9b36979 100644 --- a/src/libsodium/include/sodium/utils.h +++ b/src/libsodium/include/sodium/utils.h @@ -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()); */