mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Fix display of clear key size for EP11-AES XTS keys
Fixes: a7e47685e0 ("zkey: Add a new key type for EP11 secure keys")
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
49cbaba302
commit
33031241c3
+1
-1
@@ -1657,7 +1657,7 @@ int get_key_bit_size(const u8 *key, size_t key_size, size_t *bitsize)
|
||||
}
|
||||
} else if (is_ep11_aes_key(key, key_size)) {
|
||||
*bitsize = ep11key->head.keybitlen;
|
||||
if (key_size == 2 * AESDATA_KEY_SIZE) {
|
||||
if (key_size == 2 * EP11_KEY_SIZE) {
|
||||
ep11key = (struct ep11keytoken *)(key + EP11_KEY_SIZE);
|
||||
*bitsize += ep11key->head.keybitlen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user