simulcrypt 0.2.1

DVB SimulCrypt (ETSI TS 103 197) head-end protocol: ECMG client, EMMG server, control words
Documentation
#![forbid(unsafe_code)]
#![warn(missing_docs)]

//! DVB `SimulCrypt` (ETSI TS 103 197) - the protocol between a scrambler and conditional access
//! systems (CAS). The crate runs the ECMG client, the EMMG server, control word generation, the
//! ECM carousel and EMM packetization; scrambling and PSI/SI stay with the application.
//!
//! The main API is [`Simulcrypt`]: CAS registration (`acquire_cas`), opening services
//! (`open_service`) and one `Cw`/`Ecm`/`Ts`/`Emm`/`State` event stream per service. The
//! [`messages`] codec with the protocol constants in [`messages::ecmg`] and [`messages::emmg`] is
//! public for building test peers.

mod carousel;
mod cas;
mod config;
mod cw;
mod ecmg;
mod emmg;
mod error;
mod event;
mod lock_ext;
/// `SimulCrypt` message codec: header, TLV variables, parsing and serialization.
pub mod messages;
mod service;
mod simulcrypt;
mod spawn;

pub use config::{
    CasConfig,
    EcmgConfig,
    EmmgConfig,
    ServiceCas,
    ServiceConfig,
};
pub use cw::Parity;
pub use error::Error;
pub use event::{
    CasError,
    CasParams,
    CasState,
    CasStatus,
    DatagramFormat,
    EmmgPortStatus,
    Event,
    StreamInfo,
    StreamStatus,
};
pub use service::Service;
pub use simulcrypt::{
    CasLease,
    CasRef,
    Simulcrypt,
};