BSB Developer Docs
Loading...
Searching...
No Matches
tls_crypto_common.h File Reference

Common types and definitions for the TlsCrypto system. More...

#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  TlsCryptoCertificate
 Certificate container type for use with the TlsCrypto API functions. More...
 
struct  TlsCryptoSignature
 Signature container type for use with the TlsCrypto API functions. More...
 

Macros

#define TLS_CRYPTO_DATA_LEN_MAX   (800)
 Maximum length of the message to be signed, in bytes.
 
#define TLS_CRYPTO_CERT_LEN_MAX   (TLS_CRYPTO_DATA_LEN_MAX)
 Maximum length of a cerificate, in bytes.
 
#define TLS_CRYPTO_SIGN_LEN_MAX   (80)
 Maximum length of a signature, in bytes.
 

Enumerations

enum  TlsCryptoStatus { TlsCryptoStatusOk , TlsCryptoStatusErrorTimeout , TlsCryptoStatusErrorInternal , TlsCryptoStatusMax }
 Enumeration of possible statuses returned by the TlsCrypto API functions. More...
 
enum  TlsCryptoKeyId { TlsCryptoKeyIdIntermediate , TlsCryptoKeyIdDevice , TlsCryptoKeyIdMax }
 Enumeration of available key identifiers for use with the TlsCrypto API functions. More...
 

Detailed Description

Common types and definitions for the TlsCrypto system.

Enumeration Type Documentation

◆ TlsCryptoKeyId

Enumeration of available key identifiers for use with the TlsCrypto API functions.

Enumerator
TlsCryptoKeyIdIntermediate 

Intermediate certificate.

TlsCryptoKeyIdDevice 

Device certificate + key pair.

TlsCryptoKeyIdMax 

Special value for internal use.

◆ TlsCryptoStatus

Enumeration of possible statuses returned by the TlsCrypto API functions.

Enumerator
TlsCryptoStatusOk 

Operation was successful, no error occurred.

TlsCryptoStatusErrorTimeout 

Operation could not be completed within a reasonable time.

TlsCryptoStatusErrorInternal 

Operation failed due to a backend error.