summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9eecc3e)
raw | patch | inline | side by side (parent: 9eecc3e)
author | Yogesh Siraswar <yogeshs@ti.com> | |
Tue, 7 Dec 2021 11:28:25 +0000 (11:28 +0000) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Tue, 7 Dec 2021 17:22:28 +0000 (11:22 -0600) |
This is temporary fix till we move this package to k3-image-gen
X509 certificate template are at too many places and needs to be
consolidated.
Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
X509 certificate template are at too many places and needs to be
consolidated.
Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
scripts/secure-binary-image.sh | patch | blob | history | |
scripts/x509-template.txt | patch | blob | history |
index 36d5da1ac3500eac28a8cb094a1f6ef944ac0f6a..7bfb15b4b3b96912e70bb94e1589be6392c1cdf2 100755 (executable)
# Parse input options
INPUT_FILE=$1
OUTPUT_FILE=$2
+HS_SWRV=1
+
# Get input file info
HS_SHA_VALUE=$(openssl dgst -sha512 -hex $INPUT_FILE | sed -e "s/^.*= //g")
# Parameters to get populated into the x509 template
HS_SED_OPTS="-e s/TEST_IMAGE_LENGTH/${HS_IMAGE_SIZE}/ "
HS_SED_OPTS+="-e s/TEST_IMAGE_SHA_VAL/${HS_SHA_VALUE}/"
+HS_SED_OPTS+="-e s/TEST_SWRV/${HS_SWRV}/"
TMPX509=$(mktemp) || exit 1
cat ${PREFIX}/scripts/x509-template.txt | sed ${HS_SED_OPTS} > ${TMPX509}
index cb3e5d17a0215f80eca771cf533c59462dc2f21d..4cf37565a086d4b4f83cc38812f53a0b7de079db 100644 (file)
1.3.6.1.4.1.294.1.35 = ASN1:SEQUENCE:sysfw_image_load
[ swrv ]
-swrv = INTEGER:0
+swrv = INTEGER:TEST_SWRV
[ sysfw_image_integrity ]
shaType = OID:2.16.840.1.101.3.4.2.3