melodies_core/lib.rs
1#![no_std]
2
3mod symmetric_state;
4mod handshake_pattern;
5mod handshake_state;
6
7use cipher_state::CipherState;
8pub use handshake_pattern::patterns;
9
10pub mod crypto;
11pub mod cipher_state;
12pub mod util;
13
14pub use handshake_state::HandshakeState;
15
16
17pub struct TransportState<const HASHLEN: usize> {
18 pub send: CipherState<u64>,
19 pub recv: CipherState<u64>,
20 pub hash: [u8; HASHLEN]
21}