# seclink -- Secure Serial Link

The top-level API for the DVX serial stack.  Wraps the packet transport
and the security primitives to provide a multi-channel encrypted byte
link: per-packet encryption flag, up to 128 channels multiplexed on a
single physical port, forward-secret DH handshake, and bulk send with
retransmit handled underneath.

## Documentation

Full reference is in the combined serial stack doc:
`../serial.dhs` (the `seclink` section).  It compiles into the DVX
System Reference -- open via the Help Viewer app, or read
`docs/dvx_system_reference.html` after `make`.

Topics covered: open/close, handshake state machine, send/poll, per-
channel callbacks, channel mask, error codes, typical end-to-end usage.

## Source Files

- `secLink.h`   -- public API and error codes
- `secLink.c`   -- implementation (handshake, channel mux, bulk send)

## Build

`make -C src/libs/kpunch/serial/seclink` (invoked by the top-level `make`
via the serial subdirectory).
