12#ifndef ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_KEYGEN_STORE_H_
13#define ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_KEYGEN_STORE_H_
19#include <psa/crypto.h>
62 psa_key_attributes_t *attr);
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.