mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add a utility function to select an APQN that is set up with a specific master key for use with the CCA host library. The selection is based on the master key verification pattern, which is typically obtained from an existing secure AES key. The function iterates over a set of APQNs to find one that is setup with the desired master key in the CURRENT or OLD master key register, and optionally has a new master key loaded. It then selects the found APQN for use with the CCA host library. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>