1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/crypto: fix typos

This commit is contained in:
Kaspar Schleiser 2019-10-23 21:16:22 +02:00
parent 2127b94a7b
commit 3475542650
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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 */