BSB Developer Docs
Loading...
Searching...
No Matches
tls_crypto_common.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <stdint.h>
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16#define TLS_CRYPTO_DATA_LEN_MAX (800)
17
19#define TLS_CRYPTO_CERT_LEN_MAX (TLS_CRYPTO_DATA_LEN_MAX)
20
22#define TLS_CRYPTO_SIGN_LEN_MAX (80)
23
33
42
46typedef struct {
47 uint8_t bytes[TLS_CRYPTO_CERT_LEN_MAX];
48 size_t length;
50
54typedef struct {
55 uint8_t bytes[TLS_CRYPTO_SIGN_LEN_MAX];
56 size_t length;
58
59#ifdef __cplusplus
60}
61#endif
Certificate container type for use with the TlsCrypto API functions.
Definition tls_crypto_common.h:46
size_t length
Certificate length, in bytes.
Definition tls_crypto_common.h:48
Signature container type for use with the TlsCrypto API functions.
Definition tls_crypto_common.h:54
size_t length
Signature length, in bytes.
Definition tls_crypto_common.h:56
TlsCryptoStatus
Enumeration of possible statuses returned by the TlsCrypto API functions.
Definition tls_crypto_common.h:27
@ TlsCryptoStatusOk
Operation was successful, no error occurred.
Definition tls_crypto_common.h:28
@ TlsCryptoStatusErrorTimeout
Operation could not be completed within a reasonable time.
Definition tls_crypto_common.h:29
@ TlsCryptoStatusErrorInternal
Operation failed due to a backend error.
Definition tls_crypto_common.h:30
#define TLS_CRYPTO_SIGN_LEN_MAX
Maximum length of a signature, in bytes.
Definition tls_crypto_common.h:22
TlsCryptoKeyId
Enumeration of available key identifiers for use with the TlsCrypto API functions.
Definition tls_crypto_common.h:37
@ TlsCryptoKeyIdMax
Special value for internal use.
Definition tls_crypto_common.h:40
@ TlsCryptoKeyIdIntermediate
Intermediate certificate.
Definition tls_crypto_common.h:38
@ TlsCryptoKeyIdDevice
Device certificate + key pair.
Definition tls_crypto_common.h:39
#define TLS_CRYPTO_CERT_LEN_MAX
Maximum length of a cerificate, in bytes.
Definition tls_crypto_common.h:19