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
@@ -1222,6 +1222,7 @@ dependencies = [
"clap",
"libc",
"log",
"openssl",
"s390_pv",
"serde",
"serde_json",