* [PATCH] kernel-fitimage.bbclass: add padding algorithm property in config nodes
@ 2022-07-16 15:52 LUIS ENRIQUEZ
2022-07-31 12:42 ` Luis Enriquez
0 siblings, 1 reply; 5+ messages in thread
From: LUIS ENRIQUEZ @ 2022-07-16 15:52 UTC (permalink / raw)
To: openembedded-core; +Cc: LUIS ENRIQUEZ
This allows choosing padding algorithm when building fitImage. It may be pkcs-1.5 or pss.
Signed-off-by: LUIS ENRIQUEZ <luis.enriquez@se.com>
From: LUIS ENRIQUEZ <luis.enriquez@se.com>
---
meta/classes/kernel-fitimage.bbclass | 2 ++
meta/classes/uboot-sign.bbclass | 3 +++
2 files changed, 5 insertions(+)
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 2112ae4cfa..753164551c 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -346,6 +346,7 @@ fitimage_emit_section_config() {
conf_csum="${FIT_HASH_ALG}"
conf_sign_algo="${FIT_SIGN_ALG}"
+ conf_padding_algo="${FIT_PAD_ALG}"
if [ "${UBOOT_SIGN_ENABLE}" = "1" ] ; then
conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
fi
@@ -465,6 +466,7 @@ EOF
signature-1 {
algo = "$conf_csum,$conf_sign_algo";
key-name-hint = "$conf_sign_keyname";
+ padding = "$conf_padding_algo";
$sign_line
};
EOF
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass
index 31ffe1f472..eecdec9160 100644
--- a/meta/classes/uboot-sign.bbclass
+++ b/meta/classes/uboot-sign.bbclass
@@ -73,6 +73,9 @@ UBOOT_FIT_HASH_ALG ?= "sha256"
FIT_SIGN_ALG ?= "rsa2048"
UBOOT_FIT_SIGN_ALG ?= "rsa2048"
+# Kernel / U-Boot fitImage Padding Algo
+FIT_PAD_ALG ?= "pkcs-1.5"
+
# Generate keys for signing Kernel / U-Boot fitImage
FIT_GENERATE_KEYS ?= "0"
UBOOT_FIT_GENERATE_KEYS ?= "0"
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel-fitimage.bbclass: add padding algorithm property in config nodes
2022-07-16 15:52 [PATCH] kernel-fitimage.bbclass: add padding algorithm property in config nodes LUIS ENRIQUEZ
@ 2022-07-31 12:42 ` Luis Enriquez
0 siblings, 0 replies; 5+ messages in thread
From: Luis Enriquez @ 2022-07-31 12:42 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 90 bytes --]
Hello,
This patch could be cherry-picked into kirkstone, please?
Thanks ;)
Luis
[-- Attachment #2: Type: text/html, Size: 118 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] kernel-fitimage.bbclass: add padding algorithm property in config nodes
@ 2022-07-31 12:37 LUIS ENRIQUEZ
0 siblings, 0 replies; 5+ messages in thread
From: LUIS ENRIQUEZ @ 2022-07-31 12:37 UTC (permalink / raw)
To: openembedded-core; +Cc: LUIS ENRIQUEZ
Hello,
This patch could be cherry-picked into kirkstone, please?
Thanks ;)
Luis
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] kernel-fitimage.bbclass: add padding algorithm property in config nodes
@ 2022-07-13 8:28 LUIS ENRIQUEZ
0 siblings, 0 replies; 5+ messages in thread
From: LUIS ENRIQUEZ @ 2022-07-13 8:28 UTC (permalink / raw)
To: openembedded-core; +Cc: LUIS ENRIQUEZ
This allows choosing padding algorithm when building fitImage. It may be pkcs-1.5 or pss.
Signed-off-by: LUIS ENRIQUEZ <luis.enriquez@se.com>
From: LUIS ENRIQUEZ <lenriquez389@gmail.com>
---
meta/classes/kernel-fitimage.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 5f5e9dd444..7c0d93625b 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -56,6 +56,9 @@ FIT_HASH_ALG ?= "sha256"
# fitImage Signature Algo
FIT_SIGN_ALG ?= "rsa2048"
+# fitImage Padding Algo
+FIT_PAD_ALG ?= "pkcs-1.5"
+
#
# Emit the fitImage ITS header
#
@@ -250,6 +253,7 @@ fitimage_emit_section_config() {
conf_csum="${FIT_HASH_ALG}"
conf_sign_algo="${FIT_SIGN_ALG}"
+ conf_padding_algo="${FIT_PAD_ALG}"
if [ "${UBOOT_SIGN_ENABLE}" = "1" ] ; then
conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
fi
@@ -333,6 +337,7 @@ EOF
signature-1 {
algo = "${conf_csum},${conf_sign_algo}";
key-name-hint = "${conf_sign_keyname}";
+ padding = "${conf_padding_algo}";
${sign_line}
};
EOF
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] kernel-fitimage.bbclass: add padding algorithm property in config nodes
@ 2022-07-12 7:59 LUIS ENRIQUEZ
0 siblings, 0 replies; 5+ messages in thread
From: LUIS ENRIQUEZ @ 2022-07-12 7:59 UTC (permalink / raw)
To: openembedded-core; +Cc: LUIS ENRIQUEZ
This allows choosing padding algorithm when building fitImage. It may be pkcs-1.5 or pss.
Signed-off-by: LUIS ENRIQUEZ <luis.enriquez@se.com>
---
meta/classes/kernel-fitimage.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 5f5e9dd444..7c0d93625b 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -56,6 +56,9 @@ FIT_HASH_ALG ?= "sha256"
# fitImage Signature Algo
FIT_SIGN_ALG ?= "rsa2048"
+# fitImage Padding Algo
+FIT_PAD_ALG ?= "pkcs-1.5"
+
#
# Emit the fitImage ITS header
#
@@ -250,6 +253,7 @@ fitimage_emit_section_config() {
conf_csum="${FIT_HASH_ALG}"
conf_sign_algo="${FIT_SIGN_ALG}"
+ conf_padding_algo="${FIT_PAD_ALG}"
if [ "${UBOOT_SIGN_ENABLE}" = "1" ] ; then
conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
fi
@@ -333,6 +337,7 @@ EOF
signature-1 {
algo = "${conf_csum},${conf_sign_algo}";
key-name-hint = "${conf_sign_keyname}";
+ padding = "${conf_padding_algo}";
${sign_line}
};
EOF
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-07-31 12:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16 15:52 [PATCH] kernel-fitimage.bbclass: add padding algorithm property in config nodes LUIS ENRIQUEZ
2022-07-31 12:42 ` Luis Enriquez
-- strict thread matches above, loose matches on Subject: below --
2022-07-31 12:37 LUIS ENRIQUEZ
2022-07-13 8:28 LUIS ENRIQUEZ
2022-07-12 7:59 LUIS ENRIQUEZ
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.