mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Add support for validating AES CIPHER keys
Add support for validating secure keys using the new pkey IOCTLs. This allows to validate secure keys of type CCA-AESDATA as well as CCA-AESCIPHER. 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>
This commit is contained in:
committed by
Jan Höppner
parent
b56c74fe7b
commit
0fab6bdf2a
+2
-2
@@ -1188,7 +1188,7 @@ static int command_reencipher_file(void)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
rc = validate_secure_key(g.pkey_fd, secure_key, secure_key_size, NULL,
|
||||
&is_old_mk, g.verbose);
|
||||
&is_old_mk, NULL, g.verbose);
|
||||
if (rc != 0) {
|
||||
warnx("The secure key in file '%s' is not valid", g.pos_arg);
|
||||
rc = EXIT_FAILURE;
|
||||
@@ -1404,7 +1404,7 @@ static int command_validate_file(void)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
rc = validate_secure_key(g.pkey_fd, secure_key, secure_key_size,
|
||||
&clear_key_size, &is_old_mk, g.verbose);
|
||||
&clear_key_size, &is_old_mk, NULL, g.verbose);
|
||||
if (rc != 0) {
|
||||
warnx("The secure key in file '%s' is not valid", g.pos_arg);
|
||||
rc = EXIT_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user