Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tls_credentials_keygen_store.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_KEYGEN_STORE_H_
13#define ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_KEYGEN_STORE_H_
14
15#include <stdbool.h>
16#include <stddef.h>
17
19#include <psa/crypto.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
46
62 psa_key_attributes_t *attr);
63
83 const psa_key_id_t *used, size_t used_count,
84 psa_key_id_t *key_id);
85
102int tls_credential_keygen_store_id_pick(size_t count, psa_key_id_t (*key_id_at)(size_t index),
103 const psa_key_id_t *used, size_t used_count,
104 psa_key_id_t *key_id);
105
117
119
120#ifdef __cplusplus
121}
122#endif
123
124#endif /* ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_KEYGEN_STORE_H_ */
int tls_credential_keygen_store_id_pick(size_t count, psa_key_id_t(*key_id_at)(size_t index), const psa_key_id_t *used, size_t used_count, psa_key_id_t *key_id)
Pick a free key ID for a key store.
bool tls_credential_keygen_store_id_is_own(psa_key_id_t key_id)
Check whether a key ID belongs to the key store.
int tls_credential_keygen_store_id_alloc(sec_tag_t tag, enum tls_credential_keygen_type type, const psa_key_id_t *used, size_t used_count, psa_key_id_t *key_id)
Allocate a key ID for a key that is generated.
int tls_credential_keygen_store_attr_set(enum tls_credential_keygen_type type, psa_key_attributes_t *attr)
Set the lifetime of a key that is generated.
tls_credential_keygen_type
Type of the generated key pair.
Definition tls_credentials_keygen.h:59
int sec_tag_t
Secure tag, a reference to TLS credential.
Definition tls_credentials.h:99
uint32_t psa_key_id_t
Definition key_ids.h:25
On-device TLS private key and CSR generation API.