feat: add division and powmod (WIP) and start adapting task runner
This commit is contained in:
parent
a05f2f02b6
commit
deb4261121
4 changed files with 183 additions and 16 deletions
|
|
@ -11,6 +11,7 @@ use tasks01::{
|
|||
gcm::{gcm_decrypt, gcm_encrypt},
|
||||
gfmul::gfmul_task,
|
||||
pad_oracle::padding_oracle,
|
||||
pfmath::gfpoly_add,
|
||||
poly2block::poly2block,
|
||||
sea128::sea128,
|
||||
xex::{self, fde_xex},
|
||||
|
|
@ -83,6 +84,12 @@ pub fn task_deploy(testcase: &Testcase) -> Result<Value> {
|
|||
|
||||
Ok(json)
|
||||
}
|
||||
"gfpoly_add" => {
|
||||
let result = gfpoly_add(args)?;
|
||||
let json = json!({"plaintext" : result.to_c_array()});
|
||||
|
||||
Ok(json)
|
||||
}
|
||||
_ => Err(anyhow!(
|
||||
"Fatal. No compatible action found. Json data was {:?}. Arguments were; {:?}",
|
||||
testcase,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue