zkey: Cross check APQNs when importing secure keys
zkey: Cross check APQNs when importing secure keys

Perform a cross check of the APQNs when an existing secure AES key is
imported into the key repository. When a set of APQNs are associated to
the imported secure key, these APQNs are cross checked. If no APQNs are
associated to imported secure key, then all currently available
APQNs are cross checked. If a master key mismatch is detected, then
the key import is rejected.

Signed-off-by: Ingo Franzki <fa8d39f13ae2429c04f0388a0ea18c43b0cb5bf2@linux.ibm.com>
Reviewed-by: Harald Freudenberger <28e445f7b629c0b6f5fe74d194711d7f50b6d81d@linux.ibm.com>
Signed-off-by: Jan Höppner <96138615ab4af0813785fa10d283f3d37eca3b78@linux.ibm.com>

ibm-s390-tools/s390-tools,ibm-s390-tools/s390-tools,ibm-s390-tools/s390-tools,ibm-s390-tools/s390-tools