Skip to content

Add static delta superblock signature verification

Frederic Danis requested to merge wip/fdanis/7020 into apertis/v2021dev2

Add aum_get_target_metadata to verify the superblock metadata, expect signature and commits.

Add aum_load_target_superblock to load static delta superblock, used by aum_get_target_metadata and aum_target_superblock_verify_signature.
This prevents 2 times read problem, i.e. a first read from the media device to check signature and claim static delta as a "safe" file followed by a second read to parse the superblock again. The special HW with USB media "emulation" may substitute bits to others for the second read.

Add function to load keys, shared by aum_check_signature and aum_target_superblock_verify_signature.

Signed-off-by: Frédéric Danis frederic.danis@collabora.com

Edited by Frederic Danis

Merge request reports