From 3d292c60738120b2ff79f3b1c835c7aa4fd60299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20BR=C3=89ZOT?= Date: Fri, 17 May 2024 17:42:32 +0200 Subject: [PATCH] remove unneeded type hint --- src/core/primitives.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/primitives.rs b/src/core/primitives.rs index d1d72bd7..320a2893 100644 --- a/src/core/primitives.rs +++ b/src/core/primitives.rs @@ -163,7 +163,7 @@ pub fn encaps( let mut encaps_hybridized = |postquantum_pk, elgamal_pk| -> Result { let mut elgamal_ctx = [0; SEED_LENGTH]; - elgamal::mask::(&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)