BSB Developer Docs
Loading...
Searching...
No Matches
tls_crypto_i.h
1#pragma once
2
3#include "tls_crypto.h"
4
5#include <intercom/intercom.h>
6
7#include <api_lock.h>
8
9#include "tls_crypto_common_i.h"
10
11typedef enum {
12 TlsCryptoApiMessageTypeGetCertificate,
13 TlsCryptoApiMessageTypeSignMessage,
14 TlsCryptoApiMessageTypeMax,
15} TlsCryptoApiMessageType;
16
17typedef struct {
18 TlsCryptoKeyId key_id;
19 TlsCryptoCertificate* certificate;
21
22typedef struct {
23 TlsCryptoKeyId key_id;
24 const void* data;
25 size_t data_len;
26 TlsCryptoSignature* signature;
28
29typedef struct {
30 TlsCryptoApiMessageType type;
31 TlsCryptoStatus* status;
32 FuriApiLock lock;
33 union {
36 };
38
39struct TlsCrypto {
40 FuriMessageQueue* api_queue;
41 FuriMessageQueue* response_queue;
42 IntercomChannel* intercom_ch;
43 uint16_t current_request_id;
44};
Chip-to-chip intercommunication via U(S)ART service.
Definition intercom_i.h:37
Definition tls_crypto_i.h:17
Definition tls_crypto_i.h:29
Definition tls_crypto_i.h:22
Certificate container type for use with the TlsCrypto API functions.
Definition tls_crypto_common.h:46
Definition tls_crypto_backend.c:12
Signature container type for use with the TlsCrypto API functions.
Definition tls_crypto_common.h:54
TlsCryptoStatus
Enumeration of possible statuses returned by the TlsCrypto API functions.
Definition tls_crypto_common.h:27
TlsCryptoKeyId
Enumeration of available key identifiers for use with the TlsCrypto API functions.
Definition tls_crypto_common.h:37