dcrypt_algorithms/mq/quadratic.rs
1//! Representation of Multivariate Quadratic Polynomial Systems
2//!
3//! Placeholder for structures and methods to represent and evaluate
4//! systems of n-variable quadratic equations over a finite field.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7
8#[cfg(feature = "alloc")]
9extern crate alloc;
10// #[cfg(feature = "alloc")]
11// use alloc::vec::Vec;
12
13// /// Represents a system of m quadratic polynomials in n variables over GF(q).
14// pub struct MultivariateQuadraticSystem {
15// num_variables: usize,
16// num_polynomials: usize,
17// // Coefficients could be stored as a Vec of matrices, or a flattened Vec.
18// // For P_i(x_1, ..., x_n) = sum_{j<=k} c_{ijk} x_j x_k + sum_j d_{ij} x_j + e_i
19// #[cfg(feature = "alloc")]
20// coeffs: Vec<u8>, // Example for GF(256)
21// }