mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Re-enciphering an EP11 secure key may fail with an error message like: "zkey-cryptsetup: Failed to re-encipher the secure volume key for device '<device>'" or "zkey: Failed to re-encipher '<key>' from CURRENT to NEW master key" or similar. The verbose messages show the following debug message: "Command XCP_ADM_REENCRYPT failed. rc = 0x20" This is due to uninitialized variables, which might cause the EP11 admin request to contain garbage data, causing it to fail with CKR_DATA_INVALID (0x20). Fixes:0be7efc956("zkey: Add support for re-enciphering EP11 secure keys") Fixes:4e2ebe0370("libseckey: Fix re-enciphering of EP11 secure key") Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Joerg Schmidbauer <jschmidb@de.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>