mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2026-02-04 06:42:11 +00:00
fix(web): update CipherContext call to include IV parameter
This commit is contained in:
@@ -35,7 +35,14 @@ pub fn CipherForm(algorithm: Algorithm) -> impl IntoView {
|
||||
raw_text
|
||||
};
|
||||
|
||||
let context = CipherContext::new(algorithm, mode.get(), key, final_text, output_fmt.get());
|
||||
let context = CipherContext::new(
|
||||
algorithm,
|
||||
mode.get(),
|
||||
key,
|
||||
None,
|
||||
final_text,
|
||||
output_fmt.get(),
|
||||
);
|
||||
match context.process() {
|
||||
Ok(out) => set_output(out),
|
||||
Err(e) => set_error_msg(e.to_string()),
|
||||
|
||||
Reference in New Issue
Block a user