Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
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
18
#include <
zephyr/net/tls_credentials_keygen.h
>
19
#include <psa/crypto.h>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
46
61
int
tls_credential_keygen_store_attr_set
(
enum
tls_credential_keygen_type
type,
62
psa_key_attributes_t *attr);
63
82
int
tls_credential_keygen_store_id_alloc
(
sec_tag_t
tag,
enum
tls_credential_keygen_type
type,
83
const
psa_key_id_t
*used,
size_t
used_count,
84
psa_key_id_t
*key_id);
85
102
int
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
116
bool
tls_credential_keygen_store_id_is_own
(
psa_key_id_t
key_id);
117
119
120
#ifdef __cplusplus
121
}
122
#endif
123
124
#endif
/* ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_KEYGEN_STORE_H_ */
tls_credential_keygen_store_id_pick
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.
tls_credential_keygen_store_id_is_own
bool tls_credential_keygen_store_id_is_own(psa_key_id_t key_id)
Check whether a key ID belongs to the key store.
tls_credential_keygen_store_id_alloc
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.
tls_credential_keygen_store_attr_set
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
tls_credential_keygen_type
Type of the generated key pair.
Definition
tls_credentials_keygen.h:59
sec_tag_t
int sec_tag_t
Secure tag, a reference to TLS credential.
Definition
tls_credentials.h:90
psa_key_id_t
uint32_t psa_key_id_t
Definition
key_ids.h:25
stdbool.h
tls_credentials_keygen.h
On-device TLS private key and CSR generation API.
zephyr
net
tls_credentials_keygen_store.h
Generated on
for Zephyr API by
1.17.0