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:
parent
2127b94a7b
commit
3475542650
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user