spacedls 0.4.0

no_std CCSDS 355.0-B-2 (SDLS) Space Data Link Security implementation
Documentation
use hybrid_array::ArraySize;

/// Type-level specification for an encryption algorithm's key and IV sizes.
pub trait EncSpec {
    type KeySize: ArraySize;
    type IvSize: ArraySize;
}

/// Type-level specification for an authentication algorithm's key and MAC sizes.
pub trait AuthSpec {
    type KeySize: ArraySize;
    type MacSize: ArraySize;
}

/// Type-level specification for an AEAD algorithm's key, IV and MAC sizes.
pub trait AuthEncSpec {
    type KeySize: ArraySize;
    type IvSize: ArraySize;
    type MacSize: ArraySize;
}