Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
security_state.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_RPC_COMMANDS_SECURITY_STATE_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_RPC_COMMANDS_SECURITY_STATE_H_
12
13#include <stdint.h>
14
15#include <zephyr/toolchain.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
25
26enum {
29};
30
34 uint8_t challenge[16];
36 uint8_t hardware_id[16];
38 uint64_t device_id;
39} __packed;
40
44 uint8_t nonce[12];
46 struct {
50 uint8_t tag[16];
51 } __packed ciphertext;
52} __packed;
53
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* INFUSE_SDK_INCLUDE_INFUSE_RPC_COMMANDS_SECURITY_STATE_H_ */
@ CHALLENGE_RESPONSE_NORDIC_IDENTITY
Definition security_state.h:28
@ CHALLENGE_RESPONSE_HARDWARE_ID
Definition security_state.h:27
Hardware ID challenge response, encrypted with ChaCha20-Poly1305.
Definition security_state.h:42
struct security_state_response_hw_id data
Encrypted security_state_response_hw_id.
Definition security_state.h:48
struct security_state_response_hw_id_encrypted::@375017076376233341330332172220220225112066221142 ciphertext
Encrypted payload.
uint8_t nonce[12]
Encryption nonce.
Definition security_state.h:44
uint8_t tag[16]
Authentication tag.
Definition security_state.h:50
Hardware ID challenge response (plaintext)
Definition security_state.h:32
uint64_t device_id
Infuse-IoT device ID.
Definition security_state.h:38
uint8_t hardware_id[16]
Hardware ID from hwinfo, zero padded.
Definition security_state.h:36
uint8_t challenge[16]
Challenge bytes echoed from the request.
Definition security_state.h:34