Skip to content

build(deps): update argon2 to 0.6 and chacha20poly1305 to 0.11 - #422

Merged
juev merged 2 commits into
mainfrom
update-rustcrypto-seal
Oct 26, 2026
Merged

juev merged 2 commits into
mainfrom
update-rustcrypto-seal

Conversation

@juev

@juev juev commented Oct 26, 2026

Copy link
Copy Markdown
Owner

argon2 0.5 → 0.6 and chacha20poly1305 0.10 → 0.11 in core, both used by core/src/sync/seal.rs for the encrypted storage (S54, S55). Supersedes #412 and #413.

  • The first commit adds a_storage_sealed_by_an_earlier_release_opens: a wrapped data key and a sealed file produced by the current crates, written into the test as bytes. It passes before the update.
  • The second commit updates the crates. aead 0.6 no longer exports OsRng, so random uses Generate (the getrandom feature is on by default); nonces are built with XNonce::from / try_from instead of the deprecated from_slice. derive (Argon2id, 64 MiB, three passes) is unchanged.

The same test passes after the update, so the new crates open what the old ones sealed: the key derivation and the AEAD compute the same functions, and a storage stays readable across the upgrade in both directions.

Checked locally: make lint, make deny and make test (480 passed) pass. The Android and macOS builds are left to CI.

Closes #419

juev added 2 commits October 26, 2026 13:55
Random bytes come from Generate, as aead 0.6 no longer exports OsRng, and
nonces are built with From and TryFrom instead of the deprecated
from_slice. The key derivation needs no change. The storage sealed by the
earlier crates still opens (a_storage_sealed_by_an_earlier_release_opens).
@juev
juev force-pushed the update-rustcrypto-seal branch from b92ab65 to aac4ada Compare October 26, 2026 10:59
@juev
juev merged commit 496fa97 into main Oct 26, 2026
4 of 5 checks passed
@juev
juev deleted the update-rustcrypto-seal branch October 26, 2026 11:22
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.

Update argon2 to 0.6 and chacha20poly1305 to 0.11

1 participant