diff --git a/esp_encrypted_img/idf_component.yml b/esp_encrypted_img/idf_component.yml index 536c1e6..929414e 100644 --- a/esp_encrypted_img/idf_component.yml +++ b/esp_encrypted_img/idf_component.yml @@ -1,4 +1,4 @@ -version: "2.0.1" +version: "2.0.2" description: ESP Encrypted Image Abstraction Layer url: https://github.com/espressif/idf-extra-components/tree/master/esp_encrypted_img dependencies: diff --git a/esp_encrypted_img/include/esp_encrypted_img.h b/esp_encrypted_img/include/esp_encrypted_img.h index 22b04b8..1f843bd 100644 --- a/esp_encrypted_img/include/esp_encrypted_img.h +++ b/esp_encrypted_img/include/esp_encrypted_img.h @@ -50,7 +50,7 @@ typedef struct { } esp_decrypt_cfg_t; typedef struct { - char *data_in; /*!< Pointer to data to be decrypted */ + const char *data_in; /*!< Pointer to data to be decrypted */ size_t data_in_len; /*!< Input data length */ char *data_out; /*!< Pointer to decrypted data */ size_t data_out_len; /*!< Output data length */ diff --git a/esp_encrypted_img/src/esp_encrypted_img.c b/esp_encrypted_img/src/esp_encrypted_img.c index 16c2582..ccf558c 100644 --- a/esp_encrypted_img/src/esp_encrypted_img.c +++ b/esp_encrypted_img/src/esp_encrypted_img.c @@ -66,7 +66,7 @@ static uint32_t esp_enc_img_magic = 0x0788b6cf; typedef struct esp_encrypted_img_handle esp_encrypted_img_t; -static int decipher_gcm_key(char *enc_gcm, esp_encrypted_img_t *handle) +static int decipher_gcm_key(const char *enc_gcm, esp_encrypted_img_t *handle) { int ret = 1; size_t olen = 0;