Home
last modified time | relevance | path

Searched refs:hki (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/crypto/ccree/
Dcc_cipher.c283 struct cc_hkey_info hki; in cc_cipher_sethkey() local
292 if (keylen != sizeof(hki)) { in cc_cipher_sethkey()
298 memcpy(&hki, key, keylen); in cc_cipher_sethkey()
303 keylen = hki.keylen; in cc_cipher_sethkey()
313 switch (cc_slot_to_key_type(hki.hw_key1)) { in cc_cipher_sethkey()
320 ctx_p->hw.key1_slot = cc_slot_to_hw_key(hki.hw_key1); in cc_cipher_sethkey()
323 hki.hw_key1); in cc_cipher_sethkey()
330 if (hki.hw_key1 == hki.hw_key2) { in cc_cipher_sethkey()
332 hki.hw_key1, hki.hw_key2); in cc_cipher_sethkey()
336 ctx_p->hw.key2_slot = cc_slot_to_hw_key(hki.hw_key2); in cc_cipher_sethkey()
[all …]