Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cipher): mpz upgrade #501

Merged
merged 4 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update expect messages
  • Loading branch information
sinui0 committed Jun 13, 2024
commit e0de2702244a10a3635f386b1cb1a16b9bb98266
8 changes: 4 additions & 4 deletions components/cipher/block-cipher/src/cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ where
let msg = self
.executor
.new_private_input::<C::BLOCK>(&format!("{}/msg", &id))
.expect("failed to create message");
.expect("message is not defined");
(id, msg)
}
Visibility::Blind => {
Expand All @@ -91,7 +91,7 @@ where
let msg = self
.executor
.new_blind_input::<C::BLOCK>(&format!("{}/msg", &id))
.expect("failed to create message");
.expect("message is not defined");
(id, msg)
}
Visibility::Public => {
Expand All @@ -103,15 +103,15 @@ where
let msg = self
.executor
.new_public_input::<C::BLOCK>(&format!("{}/msg", &id))
.expect("failed to create message");
.expect("message is not defined");
(id, msg)
}
};

let ciphertext = self
.executor
.new_output::<C::BLOCK>(&format!("{}/ciphertext", &id))
.expect("failed to create ciphertext");
.expect("message is not defined");

BlockVars { msg, ciphertext }
}
Expand Down