mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Adjust the error message when calculating the KVP fails
The 'paes' and 'phmac' kernel ciphers and the respective kernel modules are no longer used for calculating the key verification pattern. Instead, the 'pkey' kernel module and its sub modules is used now. In case the 'pkey' kernel module is not available, an appropriate error message is already printed by open_pkey_device() when opening the device. Reviewed-by: Finn Callies <fcallies@linux.ibm.com> Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
7fffdcfe8c
commit
584e785f5c
@@ -1974,8 +1974,6 @@ static int reencipher_prepare(int token)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'paes_s390' is loaded and "
|
||||
"that the 'paes' cipher is available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -1991,9 +1989,6 @@ static int reencipher_prepare(int token)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'phmac_s390' is "
|
||||
"loaded and that the 'phmac' cipher is "
|
||||
"available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -2188,8 +2183,6 @@ static int reencipher_complete(int token)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'paes_s390' is loaded and "
|
||||
"that the 'paes' cipher is available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -2208,9 +2201,6 @@ static int reencipher_complete(int token)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'phmac_s390' is "
|
||||
"loaded and that the 'phmac' cipher is "
|
||||
"available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -2530,8 +2520,6 @@ static int command_setvp(void)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'paes_s390' is loaded and "
|
||||
"that the 'paes' cipher is available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -2546,8 +2534,6 @@ static int command_setvp(void)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'phmac_s390' is "
|
||||
"loaded and that the 'phmac' cipher is available");
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
@@ -2701,8 +2687,6 @@ static int command_setkey(void)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'paes_s390' is loaded and "
|
||||
"that the 'paes' cipher is available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -2715,9 +2699,6 @@ static int command_setkey(void)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'phmac_s390' is "
|
||||
"loaded and that the 'phmac' cipher is "
|
||||
"available");
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
@@ -2985,8 +2966,6 @@ static int command_convert(void)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'paes_s390' is loaded and "
|
||||
"that the 'paes' cipher is available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -3000,9 +2979,6 @@ static int command_convert(void)
|
||||
if (rc != 0) {
|
||||
warnx("Failed to generate the verification pattern: %s",
|
||||
strerror(-rc));
|
||||
warnx("Make sure that kernel module 'phmac_s390' is "
|
||||
"loaded and that the 'phmac' cipher is "
|
||||
"available");
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user