Zephyr API Documentation 4.4.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ti_cc35xx_hsm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Conclusive Engineering Sp. z o.o.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef DEVICE_TI_CC35XX_HSM_H_
7#define DEVICE_TI_CC35XX_HSM_H_
8
9#include <zephyr/device.h>
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#define HSM_AES_BLOCK_SIZE 16U
18
26
27__subsystem struct hsm_ti_cc35xx_driver_api {
28 int (*get_entropy)(const struct device *dev, uint8_t *buf, uint16_t len);
29 int (*do_crypto)(const struct device *dev, enum cipher_algo algo, enum cipher_mode mode,
30 enum cipher_op op_type, struct cipher_ctx *ctx, void *pkt);
31 int (*get_hw_caps)(const struct device *dev);
32};
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /* DEVICE_TI_CC35XX_HSM_H_ */
Crypto Cipher APIs.
cipher_op
Cipher Operation.
Definition cipher.h:33
cipher_algo
Cipher Algorithm.
Definition cipher.h:28
cipher_mode
Possible cipher mode options.
Definition cipher.h:43
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Structure encoding session parameters.
Definition cipher.h:154
Runtime device structure (in ROM) per driver instance.
Definition device.h:513
Definition ti_cc35xx_hsm.h:27
int(* get_hw_caps)(const struct device *dev)
Definition ti_cc35xx_hsm.h:31
int(* do_crypto)(const struct device *dev, enum cipher_algo algo, enum cipher_mode mode, enum cipher_op op_type, struct cipher_ctx *ctx, void *pkt)
Definition ti_cc35xx_hsm.h:29
int(* get_entropy)(const struct device *dev, uint8_t *buf, uint16_t len)
Definition ti_cc35xx_hsm.h:28
Definition ti_cc35xx_hsm.h:19
uint8_t key[16U]
Definition ti_cc35xx_hsm.h:21
uint8_t ctr[16U]
Definition ti_cc35xx_hsm.h:22
uint8_t * nonce
Definition ti_cc35xx_hsm.h:24
#define HSM_AES_BLOCK_SIZE
Definition ti_cc35xx_hsm.h:17