Searched refs:slice (Results 1 – 2 of 2) sorted by relevance
81 …slice-based organisation described below, where each slice is allocated for the long term. In part…85 Some parts of the key slot management code use **key slices** as an abstraction. A key slice is an …87 * With a [static key store](#static-key-store), there is a single, statically allocated slice, with…88 …e is statically allocated array of pointers to key slices. The index of a slice is the index in th…92 …slice containing the slot and index of the slot in its slice determine the key identifier. When ac…133 One key slice contains only loaded keys: that key slice is thus the cache slice. See [“Persistent k…137 A volatile key identifier encodes the slice index and the slot index at separate bit positions. Tha…139 #### From key slot to key slice141 …de need to determine which key slice contains a key slot when given a pointer to the key slot. In …143 * for a volatile key identifier, the [slice index is encoded in the key identifier](#volatile-key-i…[all …]
283 psa_key_slot_t *slice = global_data.key_slices[slice_idx]; in get_volatile_key_slot() local284 if (slice == NULL) { in get_volatile_key_slot()287 return &slice[slot_idx]; in get_volatile_key_slot()522 psa_key_slot_t *slice = global_data.key_slices[slice_idx]; in psa_allocate_volatile_key_slot() local527 psa_key_slot_t *slot = &slice[slot_idx]; in psa_allocate_volatile_key_slot()568 psa_key_slot_t *slice = global_data.key_slices[slice_idx]; in psa_free_key_slot() local569 psa_key_slot_t *slice_end = slice + key_slice_length(slice_idx); in psa_free_key_slot()570 if (slot < slice || slot >= slice_end) { in psa_free_key_slot()579 size_t slot_idx = slot - slice; in psa_free_key_slot()