Merge Monic functionality #19

Merged
0xalivecow merged 3 commits from dev into main 2024-11-22 14:49:59 +00:00
3 changed files with 3 additions and 8 deletions
Showing only changes of commit 5e50ef6091 - Show all commits

View file

@ -3,7 +3,6 @@ use base64::prelude::*;
use serde_json::Value;
use std::io::prelude::*;
use std::net::TcpStream;
use std::time::Instant;
use std::usize;
pub fn padding_oracle(args: &Value) -> Result<Vec<u8>> {

View file

@ -1,14 +1,12 @@
use base64::prelude::*;
use std::{str::FromStr, u128, u8, usize};
use std::{u128, u8, usize};
use std::{
cmp::Ordering,
mem::discriminant,
ops::{Add, BitXor, Div, Mul, Sub},
ops::{Add, BitXor, Div, Mul},
};
use anyhow::{anyhow, Ok, Result};
use serde_json::Value;
use super::poly::polynomial_2_block;
use super::{

View file

@ -4,15 +4,13 @@ use std::{str::FromStr, u128, u8, usize};
use std::{
cmp::Ordering,
mem::discriminant,
ops::{Add, BitXor, Div, Mul, Sub},
ops::{Add, Div, Mul},
};
use anyhow::{anyhow, Ok, Result};
use serde_json::Value;
use super::field::FieldElement;
use super::math::{reverse_bits_in_bytevec, xor_bytes};
#[derive(Debug, serde::Serialize)]
pub struct Polynomial {