spacedls 0.4.0

no_std CCSDS 355.0-B-2 (SDLS) Space Data Link Security implementation
Documentation
use crate::core::SDLSFrameFormat;
use typenum::{U0, U2, U4, U6, U12, U14, U16, U18, U20, U32};

pub struct EncFmt;
impl SDLSFrameFormat for EncFmt {
    type SNLen = U0;
    type IVLen = U16;
    type PLLen = U2;
    type MacLen = U0;
    type HeaderLen = U20;
}

pub struct AuthFmt;
impl SDLSFrameFormat for AuthFmt {
    type SNLen = U4;
    type IVLen = U0;
    type PLLen = U0;
    type MacLen = U32;
    type HeaderLen = U6;
}

pub struct AuthEncFmt;
impl SDLSFrameFormat for AuthEncFmt {
    type SNLen = U4;
    type IVLen = U12;
    type PLLen = U0;
    type MacLen = U16;
    type HeaderLen = U18;
}

pub struct AuthEncCtrFmt;
impl SDLSFrameFormat for AuthEncCtrFmt {
    type SNLen = U0;
    type IVLen = U12;
    type PLLen = U0;
    type MacLen = U16;
    type HeaderLen = U14;
}