Crate sqep

Crate sqep 

Source
Expand description

SQEP Core Library

  • Default build: exposes SQEP Lite (MIT licensed).
  • plus feature: adds SQEP Plus, Hybrid (KEM+HKDF+AEAD), and optional Firewall helpers.

Example (Lite):

use sqep::prelude::*;
let cipher = ZeroshieldCipher::new();

Example (Plus + Hybrid):

use sqep::prelude::*;
use sqep::{Kem, KemImpl};

let sqep = SQEPPlus::new();

let kp = KemImpl::keypair();
let aad = b"route=vpn;tenant=elevitax";
let (blob, _meta) = sqep.encrypt_plus_hybrid(&kp.pk, b"secret payload", aad);

let recv = SQEPPlus::new();
let pt = recv.decrypt_plus_hybrid(&kp.sk, &blob, aad).unwrap();

assert_eq!(&pt, b"secret payload");

Re-exports§

pub use license::verify_v2;
pub use license::LicCheck;
pub use license::LicenseV2;
pub use kem::Kem;
pub use kem::KemCiphertext;
pub use kem::KemImpl;
pub use kem::KemKeypair;
pub use kem::KemSharedSecret;
pub use kem::KEM_ID_STUB;
pub use kem::SS_LEN;
pub use lite::ZeroshieldCipher;Non-plus

Modules§

kem
Post-quantum KEM interface & default stub implementation src/kem.rs
license
License utilities (always available) Minimal license helpers for SQEP-Lite (public crate).
liteNon-plus
SQEP Lite (default when plus is NOT enabled) SQEP Lite – Public Quantum Encryption Library Author: Herbert Manfred Fulgence Vaty License: MIT
prelude
Common imports for quick-start