Преглед изворни кода

esp_ds: remove requirement of aligned and DMA capable buffer

API `esp_ds_encrypt_params` do not require aligned and DMA capable
output buffer for C3/S3/H2/C6. Implementation in ROM code has been
updated to remove usage of DMA mode.

This commit updates the API documentation.
Mahavir Jain пре 3 година
родитељ
комит
b168ba98ae

+ 0 - 2
components/esp_hw_support/include/soc/esp32c3/esp_ds.h

@@ -191,8 +191,6 @@ esp_err_t esp_ds_finish_sign(void *signature, esp_ds_context_t *esp_ds_ctx);
  * device.
  *
  * @param data Output buffer to store encrypted data, suitable for later use generating signatures.
- *        The allocated memory must be in internal memory and word aligned since it's filled by DMA. Both is asserted
- *        at run time.
  * @param iv Pointer to 16 byte IV buffer, will be copied into 'data'. Should be randomly generated bytes each time.
  * @param p_data Pointer to input plaintext key data. The expectation is this data will be deleted after this process
  *        is done and 'data' is stored.

+ 0 - 2
components/esp_hw_support/include/soc/esp32c6/esp_ds.h

@@ -191,8 +191,6 @@ esp_err_t esp_ds_finish_sign(void *signature, esp_ds_context_t *esp_ds_ctx);
  * device.
  *
  * @param data Output buffer to store encrypted data, suitable for later use generating signatures.
- *        The allocated memory must be in internal memory and word aligned since it's filled by DMA. Both is asserted
- *        at run time.
  * @param iv Pointer to 16 byte IV buffer, will be copied into 'data'. Should be randomly generated bytes each time.
  * @param p_data Pointer to input plaintext key data. The expectation is this data will be deleted after this process
  *        is done and 'data' is stored.

+ 0 - 2
components/esp_hw_support/include/soc/esp32h2/esp_ds.h

@@ -193,8 +193,6 @@ esp_err_t esp_ds_finish_sign(void *signature, esp_ds_context_t *esp_ds_ctx);
  * device.
  *
  * @param data Output buffer to store encrypted data, suitable for later use generating signatures.
- *        The allocated memory must be in internal memory and word aligned since it's filled by DMA. Both is asserted
- *        at run time.
  * @param iv Pointer to 16 byte IV buffer, will be copied into 'data'. Should be randomly generated bytes each time.
  * @param p_data Pointer to input plaintext key data. The expectation is this data will be deleted after this process
  *        is done and 'data' is stored.

+ 0 - 2
components/esp_hw_support/include/soc/esp32s3/esp_ds.h

@@ -175,8 +175,6 @@ esp_err_t esp_ds_finish_sign(void *signature, esp_ds_context_t *esp_ds_ctx);
  * Encrypt the private key parameters.
  *
  * @param data Output buffer to store encrypted data, suitable for later use generating signatures.
- *        The allocated memory must be in internal memory and word aligned since it's filled by DMA. Both is asserted
- *        at run time.
  * @param iv Pointer to 16 byte IV buffer, will be copied into 'data'. Should be randomly generated bytes each time.
  * @param p_data Pointer to input plaintext key data. The expectation is this data will be deleted after this process
  *        is done and 'data' is stored.