Home
last modified time | relevance | path

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

/mbedtls-latest/docs/architecture/
Dpsa-keystore-design.md81slice-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…
92slice 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 slice
141 …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 …]
/mbedtls-latest/library/
Dpsa_crypto_slot_management.c283 psa_key_slot_t *slice = global_data.key_slices[slice_idx]; in get_volatile_key_slot() local
284 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() local
527 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() local
569 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()