SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
Loading...
Searching...
No Matches
optiga_psa_se.h
Go to the documentation of this file.
1/******************************************************************************
2* File Name: optiga_psa_se.h
3*
4* Description: Header file for OPTIGA PSA Secure Element driver
5*
6* Related Document: See README.md
7*
8*******************************************************************************
9* Copyright 2024-2025, Cypress Semiconductor Corporation (an Infineon company) or
10* an affiliate of Cypress Semiconductor Corporation. All rights reserved.
11*
12* This software, including source code, documentation and related
13* materials ("Software") is owned by Cypress Semiconductor Corporation
14* or one of its affiliates ("Cypress") and is protected by and subject to
15* worldwide patent protection (United States and foreign),
16* United States copyright laws and international treaty provisions.
17* Therefore, you may use this Software only as provided in the license
18* agreement accompanying the software package from which you
19* obtained this Software ("EULA").
20* If no EULA applies, Cypress hereby grants you a personal, non-exclusive,
21* non-transferable license to copy, modify, and compile the Software
22* source code solely for use in connection with Cypress's
23* integrated circuit products. Any reproduction, modification, translation,
24* compilation, or representation of this Software except as specified
25* above is prohibited without the express written permission of Cypress.
26*
27* Disclaimer: THIS SOFTWARE IS PROVIDED AS-IS, WITH NO WARRANTY OF ANY KIND,
28* EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT, IMPLIED
29* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress
30* reserves the right to make changes to the Software without notice. Cypress
31* does not assume any liability arising out of the application or use of the
32* Software or any product or circuit described in the Software. Cypress does
33* not authorize its products for use in any products where a malfunction or
34* failure of the Cypress product may reasonably be expected to result in
35* significant property damage, injury or death ("High Risk Product"). By
36* including Cypress's product in a High Risk Product, the manufacturer
37* of such system or application assumes all risk of such use and in doing
38* so agrees to indemnify Cypress against all liability.
39*******************************************************************************/
40
41#ifndef OPTIGA_PSA_SE_H
42#define OPTIGA_PSA_SE_H
43
44#include "psa/crypto.h"
45#include "include/common/optiga_lib_common.h"
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
56psa_status_t optiga_psa_register(void);
57
58/* Forgets every slot including slot 0. Only after PSA has wiped its own key
59 * store — see the note on the definition. */
61
71void optiga_psa_set_signing_key_oid(optiga_key_id_t oid);
72
77optiga_key_id_t optiga_psa_get_signing_key_oid(void);
78
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* OPTIGA_PSA_SE_H */
optiga_key_id_t optiga_psa_get_signing_key_oid(void)
Get the currently configured OPTIGA signing key OID.
psa_status_t optiga_psa_register(void)
Register OPTIGA as a PSA Secure Element driver.
void optiga_psa_forget_all_slots(void)
void optiga_psa_set_signing_key_oid(optiga_key_id_t oid)
Set the OPTIGA key OID to use for TLS signing.
void optiga_psa_clear_all_slots(void)
Clear all PSA key slots (reset internal map).