binius_field/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2023-2024 Irreducible Inc.

//! Binary tower field implementations for use in Binius.
//!
//! This library implements binary tower field arithmetic. The canonical binary field tower
//! construction is specified in [DP23], section 2.3. This is a family of binary fields with
//! extension degree $2^{\iota}$ for any tower height $\iota$. Mathematically, we label these sets
//! $T_{\iota}$.
//!
//! [DP23]: https://eprint.iacr.org/2023/1784

#![feature(step_trait)]
#![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512))]

pub mod aes_field;
pub mod arch;
pub mod arithmetic_traits;
pub mod as_packed_field;
pub mod binary_field;
mod binary_field_arithmetic;
pub mod error;
pub mod extension;
pub mod field;
pub mod linear_transformation;
mod macros;
pub mod packed;
pub mod packed_aes_field;
pub mod packed_binary_field;
pub mod packed_extension;
mod packed_polyval;
pub mod polyval;
#[cfg(test)]
mod tests;
mod tracing;
pub mod transpose;
pub mod underlier;
pub mod util;

pub use aes_field::*;
pub use arch::byte_sliced::*;
pub use binary_field::*;
pub use error::*;
pub use extension::*;
pub use field::Field;
pub use packed::PackedField;
pub use packed_aes_field::*;
pub use packed_binary_field::*;
pub use packed_extension::*;
pub use packed_polyval::*;
pub use polyval::*;
pub use transpose::{square_transpose, transpose_scalars, Error as TransposeError};