mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-22 17:10:28 +00:00
fix(hal): updated API description and added comments
This commit is contained in:
@@ -97,6 +97,7 @@ static inline void ds_ll_configure_iv(const uint32_t *iv)
|
||||
static inline void ds_ll_write_message(const uint8_t *msg, size_t size)
|
||||
{
|
||||
memcpy((uint8_t*) DS_X_MEM, msg, size);
|
||||
// Fence ensures all memory operations are completed before proceeding further
|
||||
asm volatile ("fence");
|
||||
}
|
||||
|
||||
@@ -123,6 +124,7 @@ static inline void ds_ll_write_private_key_params(const uint8_t *encrypted_key_p
|
||||
|
||||
for (int i = 0; i < NUM_FRAGS; i++) {
|
||||
memcpy((uint8_t *)frags[i].addr, from, frags[i].len);
|
||||
// Fence ensures all memory operations are completed before proceeding further
|
||||
asm volatile ("fence");
|
||||
from += frags[i].len;
|
||||
}
|
||||
@@ -170,6 +172,7 @@ static inline ds_signature_check_t ds_ll_check_signature(void)
|
||||
static inline void ds_ll_read_result(uint8_t *result, size_t size)
|
||||
{
|
||||
memcpy(result, (uint8_t*) DS_Z_MEM, size);
|
||||
// Fence ensures all memory operations are completed before proceeding further
|
||||
asm volatile ("fence");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user