Skip to content

Commit 164fb8c

Browse files
committed
env: remove references to deprecated ENV_AES config
This config option was removed in c6831c7. Signed-off-by: Hector Palacios <[email protected]>
1 parent b09783b commit 164fb8c

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

Kconfig

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,8 @@ config DEPRECATED
6666
code that relies on deprecated features that will be removed and
6767
the conversion deadline has passed.
6868

69-
config ENV_AES
70-
bool "Encrypt U-Boot environment"
71-
select AES
72-
help
73-
Define to encrypt the whole environment block with AES-128-CBC.
74-
7569
config ENV_AES_CAAM_KEY
76-
bool "Use CAAM internal key"
70+
bool "Encrypt U-Boot environment with CAAM internal key"
7771
depends on HAS_CAAM
7872
help
7973
Use the internal CAAM secure key for environment encryption which

env/common.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ int env_set_default_vars(int nvars, char * const vars[], int flags)
116116
flags, 0, nvars, vars);
117117
}
118118

119-
#ifdef CONFIG_ENV_AES
120-
121119
#ifdef CONFIG_ENV_AES_CAAM_KEY
122120
#include <fuse.h>
123121
#include <fsl_caam.h>
@@ -160,14 +158,12 @@ static int env_aes_cbc_crypt(env_t *env, const int enc)
160158
free(buffer);
161159
return ret;
162160
}
163-
#endif /* CONFIG_ENV_AES_CAAM_KEY */
164-
165161
#else
166162
static inline int env_aes_cbc_crypt(env_t *env, const int enc)
167163
{
168164
return 0;
169165
}
170-
#endif
166+
#endif /* CONFIG_ENV_AES_CAAM_KEY */
171167

172168
/*
173169
* Check if CRC is valid and (if yes) import the environment.

include/env_internal.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,7 @@ extern unsigned long nand_env_oob_offset;
8383
# define ENV_HEADER_SIZE (sizeof(uint32_t))
8484
#endif
8585

86-
#if defined(CONFIG_ENV_AES) && !defined(CONFIG_ENV_AES_CAAM_KEY)
87-
/* Make sure the payload is multiple of AES block size */
88-
#define ENV_SIZE ((CONFIG_ENV_SIZE - ENV_HEADER_SIZE) & ~(16 - 1))
89-
#else
9086
#define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
91-
#endif
9287

9388
/*
9489
* If the environment is in RAM, allocate extra space for it in the malloc
@@ -111,7 +106,7 @@ typedef struct environment_s {
111106
#endif
112107
unsigned char data[ENV_SIZE]; /* Environment data */
113108
} env_t
114-
#ifdef CONFIG_ENV_AES
109+
#ifdef CONFIG_ENV_AES_CAAM_KEY
115110
/* Make sure the env is aligned to block size. */
116111
__attribute__((aligned(16)))
117112
#endif

0 commit comments

Comments
 (0)