Lines Matching refs:keyslot

1622     int keyslot;  in qcrypto_block_luks_amend_add_keyslot()  local
1640 keyslot = opts_luks->keyslot; in qcrypto_block_luks_amend_add_keyslot()
1641 if (keyslot < 0 || keyslot >= QCRYPTO_BLOCK_LUKS_NUM_KEY_SLOTS) { in qcrypto_block_luks_amend_add_keyslot()
1644 keyslot, QCRYPTO_BLOCK_LUKS_NUM_KEY_SLOTS - 1); in qcrypto_block_luks_amend_add_keyslot()
1648 keyslot = qcrypto_block_luks_find_free_keyslot(luks); in qcrypto_block_luks_amend_add_keyslot()
1649 if (keyslot == -1) { in qcrypto_block_luks_amend_add_keyslot()
1656 if (!force && qcrypto_block_luks_slot_active(luks, keyslot)) { in qcrypto_block_luks_amend_add_keyslot()
1660 keyslot); in qcrypto_block_luks_amend_add_keyslot()
1686 if (qcrypto_block_luks_store_key(block, keyslot, new_password, master_key, in qcrypto_block_luks_amend_add_keyslot()
1688 error_append_hint(errp, "Failed to write to keyslot %i", keyslot); in qcrypto_block_luks_amend_add_keyslot()
1740 int keyslot = opts_luks->keyslot; in qcrypto_block_luks_amend_erase_keyslots() local
1742 if (keyslot < 0 || keyslot >= QCRYPTO_BLOCK_LUKS_NUM_KEY_SLOTS) { in qcrypto_block_luks_amend_erase_keyslots()
1745 keyslot, QCRYPTO_BLOCK_LUKS_NUM_KEY_SLOTS - 1); in qcrypto_block_luks_amend_erase_keyslots()
1751 keyslot, in qcrypto_block_luks_amend_erase_keyslots()
1763 keyslot); in qcrypto_block_luks_amend_erase_keyslots()
1768 if (!force && !qcrypto_block_luks_slot_active(luks, keyslot)) { in qcrypto_block_luks_amend_erase_keyslots()
1771 keyslot); in qcrypto_block_luks_amend_erase_keyslots()
1780 keyslot); in qcrypto_block_luks_amend_erase_keyslots()
1784 if (qcrypto_block_luks_erase_key(block, keyslot, in qcrypto_block_luks_amend_erase_keyslots()
1786 error_append_hint(errp, "Failed to erase keyslot %i", keyslot); in qcrypto_block_luks_amend_erase_keyslots()