dcrypt-algorithms 1.2.3

Cryptographic primitives for the dcrypt library
Documentation
//! Sparse Binary Matrix Operations
//!
//! Placeholder for efficient operations on sparse matrices over GF(2),
//! often used in code-based cryptography (e.g., parity-check matrices).

#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(feature = "alloc")]
extern crate alloc;
// #[cfg(feature = "alloc")]
// use alloc::vec::Vec;

// /// Represents a sparse binary matrix.
// pub struct SparseBinaryMatrix {
//     // Example: Could be stored as list of rows, each row a list of column indices of set bits.
//     #[cfg(feature = "alloc")]
//     rows: Vec<Vec<usize>>,
//     num_cols: usize,
// }

// TODO: Implement operations like:
// - Matrix-vector multiplication (syndrome calculation)
// - Gaussian elimination for sparse systems
// - Bit-sliced operations for performance