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
-3
@@ -235,13 +235,12 @@ int open_pkey_device(bool verbose);
|
||||
|
||||
int generate_secure_key_random(int pkey_fd, const char *keyfile,
|
||||
size_t keybits, bool xts, const char *key_type,
|
||||
u16 card, u16 domain, bool verbose);
|
||||
const char **apqns, bool verbose);
|
||||
|
||||
int generate_secure_key_clear(int pkey_fd, const char *keyfile,
|
||||
size_t keybits, bool xts,
|
||||
const char *clearkeyfile, const char *key_type,
|
||||
u16 card, u16 domain,
|
||||
bool verbose);
|
||||
const char **apqns, bool verbose);
|
||||
|
||||
u8 *read_secure_key(const char *keyfile, size_t *secure_key_size,
|
||||
bool verbose);
|
||||
|
||||
Reference in New Issue
Block a user