Home
last modified time | relevance | path

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

/openbmc/qemu/crypto/
H A Dblock-luks.c378 cpu_to_be32s(&hdr->key_slots[i].active); in qcrypto_block_luks_to_disk_endian()
379 cpu_to_be32s(&hdr->key_slots[i].iterations); in qcrypto_block_luks_to_disk_endian()
380 cpu_to_be32s(&hdr->key_slots[i].key_offset_sector); in qcrypto_block_luks_to_disk_endian()
381 cpu_to_be32s(&hdr->key_slots[i].stripes); in qcrypto_block_luks_to_disk_endian()
400 be32_to_cpus(&hdr->key_slots[i].active); in qcrypto_block_luks_from_disk_endian()
401 be32_to_cpus(&hdr->key_slots[i].iterations); in qcrypto_block_luks_from_disk_endian()
403 be32_to_cpus(&hdr->key_slots[i].stripes); in qcrypto_block_luks_from_disk_endian()
723 slot = &luks->header.key_slots[slot_idx]; in qcrypto_block_luks_store_key()
895 slot = &luks->header.key_slots[slot_idx]; in qcrypto_block_luks_load_key()
1076 val = luks->header.key_slots[slot_idx].active; in qcrypto_block_luks_slot_active()
[all …]
H A Dblock-luks-priv.h134 QCryptoBlockLUKSKeySlot key_slots[QCRYPTO_BLOCK_LUKS_NUM_KEY_SLOTS]; member
/openbmc/qemu/tests/unit/
H A Dtest-crypto-block.c517 hdr->key_slots[0].stripes = 3999; in luks_bad_stripes()
524 hdr->key_slots[0].key_offset_sector = 2; in luks_bad_key_overlap_header()
531 hdr->key_slots[0].key_offset_sector = hdr->key_slots[1].key_offset_sector; in luks_bad_key_overlap_key()
538 hdr->key_slots[0].key_offset_sector = hdr->payload_offset_sector + 42; in luks_bad_key_overlap_payload()
552 hdr->key_slots[0].iterations = 0; in luks_bad_key_iterations()