mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2025-12-31 13:52:29 +00:00
fix(web): update CipherContext call to include IV parameter
This commit is contained in:
parent
48ab599d66
commit
187b65d011
@ -35,7 +35,14 @@ pub fn CipherForm(algorithm: Algorithm) -> impl IntoView {
|
|||||||
raw_text
|
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() {
|
match context.process() {
|
||||||
Ok(out) => set_output(out),
|
Ok(out) => set_output(out),
|
||||||
Err(e) => set_error_msg(e.to_string()),
|
Err(e) => set_error_msg(e.to_string()),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user