test/py: efi_capsule: add image authentication test
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 9 Feb 2022 10:10:38 +0000 (19:10 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 11 Feb 2022 19:07:55 +0000 (20:07 +0100)
commitbad58cb308acdf739e855e3336dfdf1a8d7b08a4
tree8ec0e9c67429f1f15e3687bfef7e1912f8da7b18
parenta62eb06f7c2b80e80a1f14f8950c3fb6958a97d4
test/py: efi_capsule: add image authentication test

Add a couple of test cases against capsule image authentication
for capsule-on-disk, where only a signed capsule file with the verified
signature will be applied to the system.

Due to the difficulty of embedding a public key (esl file) in U-Boot
binary during pytest setup time, all the keys/certificates are pre-created.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
test/py/tests/test_efi_capsule/capsule_defs.py
test/py/tests/test_efi_capsule/conftest.py
test/py/tests/test_efi_capsule/signature.dts [new file with mode: 0644]
test/py/tests/test_efi_capsule/test_capsule_firmware_signed.py [new file with mode: 0644]