diff --git a/sys/crypto/modes/ccm.c b/sys/crypto/modes/ccm.c index 0ca5653030..406a315ddb 100644 --- a/sys/crypto/modes/ccm.c +++ b/sys/crypto/modes/ccm.c @@ -174,7 +174,7 @@ int cipher_encrypt_ccm(cipher_t *cipher, return CCM_ERR_INVALID_DATA_LENGTH; } - /* MAC calulation (T) with additional data and plaintext */ + /* MAC calculation (T) with additional data and plaintext */ len = ccm_compute_adata_mac(cipher, auth_data, auth_data_len, mac_iv); if (len < 0) { return len; @@ -259,7 +259,7 @@ int cipher_decrypt_ccm(cipher_t *cipher, return CCM_ERR_INVALID_DATA_LENGTH; } - /* MAC calulation (T) with additional data and plaintext */ + /* MAC calculation (T) with additional data and plaintext */ len = ccm_compute_adata_mac(cipher, auth_data, auth_data_len, mac_iv); if (len < 0) { return len; diff --git a/sys/crypto/modes/ocb.c b/sys/crypto/modes/ocb.c index 7777f55597..2aa3e43031 100644 --- a/sys/crypto/modes/ocb.c +++ b/sys/crypto/modes/ocb.c @@ -331,7 +331,7 @@ int32_t cipher_decrypt_ocb(cipher_t *cipher, uint8_t *auth_data, OCB_MODE_DECRYPT); if (plain_text_length < 0) { - // An error occurred. Retur the error code + // An error occurred. Return the error code return plain_text_length; } /* Check the tag */