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()); */