aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2021-07-14 17:05:41 -0500
committerTom Rini <trini@konsulko.com>2021-07-16 15:39:28 -0400
commit24cee49fccf0ea699f044518f2672eeb7b9b7475 (patch)
tree532dc102f49d06cc09508c08e6d5454bcfa7d2ef /common
parent6909edb4cedf90c7a1fb68302dc2cec6291a0fcd (diff)
downloadu-boot-24cee49fccf0ea699f044518f2672eeb7b9b7475.zip
u-boot-24cee49fccf0ea699f044518f2672eeb7b9b7475.tar.gz
u-boot-24cee49fccf0ea699f044518f2672eeb7b9b7475.tar.bz2
image: image-sig.c: Remove crypto_algos array
Crytographic algorithms (currently RSA), are stored in linker lists. The crypto_algos array is unused, so remove it, and any logic associated with it. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/image-sig.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/common/image-sig.c b/common/image-sig.c
index 83f3e9f..d680bf7d 100644
--- a/common/image-sig.c
+++ b/common/image-sig.c
@@ -51,9 +51,6 @@ struct checksum_algo checksum_algos[] = {
};
-struct crypto_algo crypto_algos[] = {
-};
-
struct padding_algo padding_algos[] = {
{
.name = "pkcs-1.5",
@@ -98,32 +95,14 @@ struct checksum_algo *image_get_checksum_algo(const char *full_name)
struct crypto_algo *image_get_crypto_algo(const char *full_name)
{
struct crypto_algo *crypto, *end;
- int i;
const char *name;
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
- static bool done;
-
- if (!done) {
- done = true;
- for (i = 0; i < ARRAY_SIZE(crypto_algos); i++) {
- crypto_algos[i].name += gd->reloc_off;
- crypto_algos[i].verify += gd->reloc_off;
- }
- }
-#endif
-
/* Move name to after the comma */
name = strchr(full_name, ',');
if (!name)
return NULL;
name += 1;
- for (i = 0; i < ARRAY_SIZE(crypto_algos); i++) {
- if (!strcmp(crypto_algos[i].name, name))
- return &crypto_algos[i];
- }
-
crypto = ll_entry_start(struct crypto_algo, cryptos);
end = ll_entry_end(struct crypto_algo, cryptos);
for (; crypto < end; crypto++) {