Merge pull request #23 from MacDue/const_correct

esp_encrypted_img: make code const-correct
This commit is contained in:
Mahavir Jain 2022-03-11 12:26:27 +05:30 committed by GitHub
commit 71142723e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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 */

View File

@ -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;