Skip to content

Commit

Permalink
remove unneeded type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrezot committed May 17, 2024
1 parent 42b35e2 commit 3d292c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub fn encaps(
let mut encaps_hybridized =
|postquantum_pk, elgamal_pk| -> Result<postquantum::Ciphertext, Error> {
let mut elgamal_ctx = [0; SEED_LENGTH];
elgamal::mask::<SEED_LENGTH>(&mut elgamal_ctx, &ephemeral_random, elgamal_pk, &seed);
elgamal::mask(&mut elgamal_ctx, &ephemeral_random, elgamal_pk, &seed);
let postquantum_ctx = postquantum::encrypt(rng, postquantum_pk, &elgamal_ctx)?;
elgamal_ctx.zeroize(); // ElGamal ciphertext is not secure in a post-quantum world
Ok(postquantum_ctx)
Expand Down

0 comments on commit 3d292c6

Please sign in to comment.