Skip to content

Commit

Permalink
Remove unused & incorrect ciphertext length method
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnusv committed Aug 1, 2023
1 parent 0ec84b6 commit da7eb57
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tpke/src/ciphertext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ impl<E: Pairing> Ciphertext<E> {
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<E: Pairing>(
Expand Down

0 comments on commit da7eb57

Please sign in to comment.