Lines Matching refs:keyslot
29 int keyslot; in search_policy_hash() local
38 keyslot = cryptsetup_get_keyslot_from_token(v); in search_policy_hash()
39 if (keyslot < 0) { in search_policy_hash()
42 … log_warning_errno(keyslot, "Failed to determine keyslot of JSON token %i, skipping: %m", token); in search_policy_hash()
57 return keyslot; /* Found entry with same hash. */ in search_policy_hash()
144 int r, keyslot; in enroll_tpm2() local
193 keyslot = crypt_keyslot_add_by_volume_key( in enroll_tpm2()
200 if (keyslot < 0) in enroll_tpm2()
201 return log_error_errno(keyslot, "Failed to add new TPM2 key to %s: %m", node); in enroll_tpm2()
203 …r = tpm2_make_luks2_json(keyslot, pcr_mask, pcr_bank, primary_alg, blob, blob_size, hash, hash_siz… in enroll_tpm2()
211 log_info("New TPM2 token enrolled as key slot %i.", keyslot); in enroll_tpm2()
212 return keyslot; in enroll_tpm2()