mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Add support for generating AES CIPHER keys
Add support for generating secure keys using the new pkey IOCTLs. This allows to generate secure keys of type CCA-AESDATA as well as CCA-AESCIPHER, either by random inside the crypto card, or from a given clear key. 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
663d362ff3
commit
b56c74fe7b
+2
-4
@@ -1029,8 +1029,7 @@ static int command_generate_clear(void)
|
||||
rc = generate_secure_key_clear(g.pkey_fd, g.pos_arg,
|
||||
g.keybits, g.xts,
|
||||
g.clearkeyfile, g.key_type,
|
||||
AUTOSELECT, AUTOSELECT,
|
||||
g.verbose);
|
||||
NULL, g.verbose);
|
||||
|
||||
return rc != 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
}
|
||||
@@ -1046,8 +1045,7 @@ static int command_generate_random(void)
|
||||
|
||||
rc = generate_secure_key_random(g.pkey_fd, g.pos_arg,
|
||||
g.keybits, g.xts, g.key_type,
|
||||
AUTOSELECT, AUTOSELECT,
|
||||
g.verbose);
|
||||
NULL, g.verbose);
|
||||
|
||||
return rc != 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user