Skip to content

Conversation

@newpavlov
Copy link
Member

@newpavlov newpavlov commented Aug 11, 2025

Previously we were using block size + 1 byte to serialize eager block buffers while block size is sufficient. It resulted in odd serialization state sizes. The SerializableState impl also a bit convoluted.

The new implementation results in more efficient serialization and more straightforward code. The main drawback is that it inevitably involves a breaking change in the serialization format.

Depends on RustCrypto/utils#1200.

@newpavlov newpavlov changed the title digest: improve serialization of eager hashes digest: improve implementations of the SerializableState trait Aug 13, 2025
@newpavlov newpavlov merged commit 7bbc010 into master Aug 13, 2025
74 checks passed
@newpavlov newpavlov deleted the digest/serialization branch August 13, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant