pv: Refactor 'get_verified_hkds'

Get rid of 'read_hkd' by refactoring the 'get_verified_hkds' function.
For this a new HkdLoader::load_and_verify is introduced that is a
reworked version of the original code.

In addition, add test cases for testing all the edge cases.

Assisted-by: IBM Bob:1.0.6
Signed-off-by: Marc Hartmayer <marc@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2026-07-28 18:05:38 +02:00
committed by Steffen Eiden
parent 1aa1558f91
commit 0263637d9f
10 changed files with 447 additions and 151 deletions
+1
View File
@@ -9,6 +9,7 @@ chrono = { version = "0.4.44", default-features = false, features = ["std"] }
clap = { version ="4.6", features = ["derive", "wrap_help"] }
libc = "0.2.186"
log = { version = "0.4.29", features = ["std", "release_max_level_debug"] }
openssl = "0.10"
pv = { path = "../pv", package = "s390_pv" }
serde = { version = "1.0.228"}