Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ece"
version = "2.3.1"
version = "2.4.1"
authors = [
"Firefox Sync Team <sync-team@mozilla.com>",
"JR Conlin <src+git@jrconlin.com>",
Expand All @@ -13,12 +13,12 @@ keywords = ["http-ece", "web-push"]

[dependencies]
byteorder = "1.3"
thiserror = "1.0"
thiserror = "2.0"
base64 = "0.22"
hex = "0.4"
hkdf = { version = "0.12", optional = true }
lazy_static = { version = "1.4", optional = true }
once_cell = "1.4"
lazy_static = { version = "1.5", optional = true }
once_cell = "1.21"
openssl = { version = "0.10", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
sha2 = { version = "0.10", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/aes128gcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ struct PlaintextRecordIterator<'a> {
sequence_number: usize,
}

impl<'a> PlaintextRecordIterator<'a> {
impl PlaintextRecordIterator<'_> {
pub(crate) fn total_ciphertext_size(&self) -> usize {
self.total_size + self.num_records * ECE_TAG_LENGTH
}
Expand Down
2 changes: 1 addition & 1 deletion src/aesgcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub struct AesGcmEncryptedBlock {

impl AesGcmEncryptedBlock {
fn aesgcm_rs(rs: u32) -> u32 {
if rs > u32::max_value() - ECE_TAG_LENGTH as u32 {
if rs > u32::MAX - ECE_TAG_LENGTH as u32 {
return 0;
}
rs + ECE_TAG_LENGTH as u32
Expand Down