Lines Matching refs:context
189 2. `const uint8_t *key_buffer`: a key material or key context buffer.
196 …a_key_id_t *` output parameter is replaced by a sequence of parameters that convey the key context:
197 1. `uint8_t *key_buffer`: a buffer for the key material or key context.
240 …resents the operation context. The lifecycle of a driver operation context is similar to the lifec…
242 1. The core initializes operation context objects to either all-bits-zero or to logical zero (`{0}`…
243 …or this operation family. If this fails, the core destroys the operation context object without ca…
244 1. The core calls other entry points that manipulate the operation context object, respecting the c…
245 …bort` entry point for this operation family, then destroys the operation context object without ca…
246 1. If a “finish” entry point fails, the core destroys the operation context object without calling …
258 …h_operation_t"`: the type of a hash operation context. It must be possible to copy a hash operatio…
374 …ct. Call `psa_crypto_driver_key_derivation_get_input_key()` to obtain a pointer to the key context.
403 …context and `*key_buffer_size` to the size of the key context in bytes. The key context buffer rem…
808 …context can only be used by code from the same driver, so key validity is primarily intended to re…
927 * Type `"random_context_t"`: the type of a random generation context.
941 psa_status_t acme_init_random(acme_random_context_t *context);
944 …s this entry point once after allocating a random generation context. Initially, the context objec…
946 If a driver does not have an `"init_random"` entry point, the context object passed to the first ca…
953 psa_status_t acme_add_entropy(acme_random_context_t *context,
960 * `context`: a random generation context. On the first call to `"add_entropy"`, this object has bee…
997 psa_status_t acme_get_random(acme_random_context_t *context,
1005 …context`: a random generation context. If the driver's `"initial_entropy_size"` property is nonzer…
1040 Note that since the core stores the key context blob as it is in memory, it must only contain data …
1042 …iption-top-level-element) specifies how to calculate the size of the key context as a function of …
1044 * `"base_size"` (integer or string, optional): this many bytes are included in every key context. I…
1045 …(integer or string, optional): this many bytes are included in every key context for a key pair. I…
1046 …(integer or string, optional): this many bytes are included in every key context for a public key.…
1047 * `"symmetric_factor"` (integer or string, optional): every key context for a symmetric key include…
1048 * `"store_public_key"` (boolean, optional): If specified and true, for a key pair, the key context …
1049 …function that returns the number of bytes that the driver needs in a key context for a key. This m…
1050 …ding the `"size_function"` entry point) to determine the size of the key context for [built-in key…
1054 #### Size of a dynamically allocated key context
1056 …for the key context and chooses to use it, and the driver specification includes the `"size_functi…
1065 #### Size of a statically allocated key context
1067 …e key context or chooses not to use it, or if the driver specification does not include the `"size…
1086 #### Key context size for a secure element with storage
1090 … this only influences the size of the key context: the driver code must copy the public key to the…
1092 #### Key context size for a secure element without storage
1119 1. The core allocates memory for the key context.
1121 3. The core saves the resulting wrapped key material and any other data that the key context may co…
1144 …ing the state of the secure element and stores the identifier in the key context. This function sh…
1146 1. The core saves the key context to persistent storage.
1150 1. The core saves the updated key context to persistent storage.
1161 … a free slot number, mark it as occupied and store the number in the key context. When the key is …
1162 …a key slot, increment the counter and store the current value in the key context. Destroying a key…
1209 …y choose to store the public key in the key context buffer or to recalculate it on demand. If the …
1251 …or the key identifier). On success, this function must also fill `key_buffer` with the key context.
1257 Typically, for a built-in key, the key context is a reference to key material that is kept inside t…
1261 …arameters `attributes` and `key_buffer` contain the key metadata and key context respectively, and…
1398 …tween. Opaque drivers have a choice of storing the public key in the key context or calculating it…
1448 May the core instantiate a random generation context more than once? In other words, can there be m…