From da7eb578e98fd5857f929529966bd7c4bfecc500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Tue, 1 Aug 2023 13:40:44 +0200 Subject: [PATCH] Remove unused & incorrect ciphertext length method --- tpke/src/ciphertext.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tpke/src/ciphertext.rs b/tpke/src/ciphertext.rs index 9e60199f..a579e6da 100644 --- a/tpke/src/ciphertext.rs +++ b/tpke/src/ciphertext.rs @@ -60,12 +60,6 @@ impl Ciphertext { Err(Error::CiphertextVerificationFailed) } } - - pub fn serialized_length(&self) -> usize { - self.commitment.serialized_size(Compress::No) - + self.auth_tag.serialized_size(Compress::No) - + self.ciphertext.len() - } } pub fn encrypt(