cli: Move StaticKEM::keygen out of unsafe

This commit moves the `StaticKEM::keygen` call out of an `unsafe` call,
because the function is not unsafe.
This commit is contained in:
Emil Engler
2023-09-13 16:36:35 +02:00
parent a98f64c17d
commit d0a84294aa
+1 -1
View File
@@ -164,9 +164,9 @@ impl Cli {
// generate the keys and store them in files
let mut ssk = crate::protocol::SSk::random();
let mut spk = crate::protocol::SPk::random();
StaticKEM::keygen(ssk.secret_mut(), spk.secret_mut())?;
unsafe {
StaticKEM::keygen(ssk.secret_mut(), spk.secret_mut())?;
ssk.store_secret(skf)?;
spk.store_secret(pkf)?;
}