From 6fad35625fafee5a06926c6896fa5013e6509e3c Mon Sep 17 00:00:00 2001 From: Adrian Warecki Date: Mon, 27 Feb 2023 14:57:12 +0100 Subject: [PATCH] rimage: Removed hash context from image structure Fields related to hash computing have been removed from the image structure. Removed openssl headers from rimage.h, which made it necessary to add some missing includes in several files. Signed-off-by: Adrian Warecki --- src/adsp_config.c | 2 ++ src/css.c | 1 + src/elf.c | 2 ++ src/ext_manifest.c | 1 + src/include/rimage/rimage.h | 7 +------ 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/adsp_config.c b/src/adsp_config.c index 9c4c94c50..4b086f4fd 100644 --- a/src/adsp_config.c +++ b/src/adsp_config.c @@ -18,6 +18,8 @@ #include "toml.h" #include #include +#include +#include #include #include #include diff --git a/src/css.c b/src/css.c index 92f6ea89f..631c3ee43 100644 --- a/src/css.c +++ b/src/css.c @@ -6,6 +6,7 @@ // Keyon Jie #include +#include #include #include #include diff --git a/src/elf.c b/src/elf.c index 552bc44d3..0275a194e 100644 --- a/src/elf.c +++ b/src/elf.c @@ -7,7 +7,9 @@ #include #include +#include #include +#include #include #include #include diff --git a/src/ext_manifest.c b/src/ext_manifest.c index 6985b919c..8ed899406 100644 --- a/src/ext_manifest.c +++ b/src/ext_manifest.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include diff --git a/src/include/rimage/rimage.h b/src/include/rimage/rimage.h index 063f5ccec..692dbcdd7 100644 --- a/src/include/rimage/rimage.h +++ b/src/include/rimage/rimage.h @@ -11,9 +11,6 @@ #include #include -#include -#include -#include #include #include @@ -87,10 +84,8 @@ struct image { int meu_offset; const char *verify_file; - /* SHA 256 & 384 */ + /* private key file name*/ const char *key_name; - EVP_MD_CTX *mdctx; - const EVP_MD *md; /* file IO */ void *fw_image;