Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_14317_v5.3' into 'release/v5.3'
Browse files Browse the repository at this point in the history
fix(mbedtls/port): fix codespell issues (GitHub PR) (v5.3)

See merge request espressif/esp-idf!33010
  • Loading branch information
mahavirj committed Sep 9, 2024
2 parents 0c7e957 + b4c956c commit 37bdbf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/mbedtls/port/aes/esp_aes_gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*(uint64_t*)(a) = __builtin_bswap64( (uint64_t)(val) ); \
} while (0)

/* For simplicity limit the maxium amount of aad bytes to a single DMA descriptor
/* For simplicity limit the maximum amount of aad bytes to a single DMA descriptor
This should cover all normal, e.g. mbedtls, use cases */
#define ESP_AES_GCM_AAD_MAX_BYTES 4080

Expand Down Expand Up @@ -131,7 +131,7 @@ static void xor_data(uint8_t *d, const uint8_t *s)
}
#endif

/* Based on MbedTLS's implemenation
/* Based on MbedTLS's implementation
*
* Precompute small multiples of H, that is set
* HH[i] || HL[i] = H times i,
Expand Down Expand Up @@ -198,7 +198,7 @@ static const uint64_t last4[16] = {
0xe100, 0xfd20, 0xd940, 0xc560,
0x9180, 0x8da0, 0xa9c0, 0xb5e0
};
/* Based on MbedTLS's implemenation
/* Based on MbedTLS's implementation
*
* Sets output to x times H using the precomputed tables.
* x and output are seen as elements of GF(2^128) as in [MGV].
Expand Down Expand Up @@ -670,7 +670,7 @@ int esp_aes_gcm_crypt_and_tag( esp_gcm_context *ctx,
int ret;
size_t remainder_bit;

/* Due to hardware limition only certain cases are fully supported in HW */
/* Due to hardware limitation only certain cases are fully supported in HW */
if (!esp_aes_gcm_input_support_hw_accel(length, aad, aad_len, input, output)) {
return esp_aes_gcm_crypt_and_tag_partial_hw(ctx, mode, length, iv, iv_len, aad, aad_len, input, output, tag_len, tag);
}
Expand Down

0 comments on commit 37bdbf3

Please sign in to comment.