Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
crypto.h File Reference

Backend-agnostic cryptographic operations for TLS and SRTP. More...

#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
Include dependency graph for crypto.h:

Go to the source code of this file.

Data Structures

struct  Compy_CryptoTlsOps
 TLS operations provided by the compiled backend. More...
 
struct  Compy_CryptoSrtpOps
 SRTP cryptographic operations provided by the compiled backend. More...
 

Typedefs

typedef void Compy_CryptoTlsCtx
 Opaque TLS context handle (backend-specific).
 
typedef void Compy_CryptoTlsConn
 Opaque TLS connection handle (backend-specific).
 

Variables

const Compy_CryptoTlsOps compy_crypto_tls_ops
 The TLS operations singleton, defined by the compiled backend.
 
const Compy_CryptoSrtpOps compy_crypto_srtp_ops
 The SRTP operations singleton, defined by the compiled backend.
 

Detailed Description

Backend-agnostic cryptographic operations for TLS and SRTP.

This header defines function pointer structs that each TLS backend (wolfSSL, mbedTLS, OpenSSL, BearSSL) implements. The compiled backend populates the extern const singletons. Only one backend is linked at a time, selected via CMake options.

This is a private header; do not include directly from application code.