refactor: upgrade aes gcm 0.11.0 - #3780
Conversation
Updates aes-gcm code to move from crate version 0.10.3 to 0.11.0.
|
@claude review |
Pull request overviewUpgrades Changes:
Reviewed changesPer-file summary
FindingsBlocking: none — the wire format (12-byte nonce ‖ ciphertext ‖ 16-byte tag) is unchanged, so existing on-disk DB values remain decryptable across the upgrade, and the surviving round-trip tests ( Non-blocking:
✅ Approved |
There was a problem hiding this comment.
Pull request overview
Upgrades the workspace aes-gcm dependency to v0.11.0 and refactors nonce/key generation call sites in mpc-node to use the updated aead APIs.
Changes:
- Bump
aes-gcmfrom0.10.3to0.11.0at the workspace level (and updateCargo.lockaccordingly). - Update AES-GCM key generation in node tests and migration-service web test utilities to use
Key::<Aes256Gcm>::generate(). - Update nonce generation / parsing in migration-service encryption and SecretDB encryption helpers to use
Nonce::<...>::generate()andNonce::<...>::try_from(...).
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| crates/node/src/tests.rs | Updates integration test secrets to generate AES-GCM backup keys using the new Key::<Aes256Gcm>::generate() API. |
| crates/node/src/migration_service/web/test_utils.rs | Updates migration web test setup to generate backup encryption keys with the new API. |
| crates/node/src/migration_service/web/encryption.rs | Refactors nonce generation/parsing and decrypt call signature to match aes-gcm 0.11 aead APIs. |
| crates/node/src/db.rs | Refactors SecretDB nonce generation/parsing and decrypt call signature to match aes-gcm 0.11 aead APIs. |
| Cargo.toml | Bumps the workspace aes-gcm version to 0.11.0. |
| Cargo.lock | Locks updated transitive dependency graph for the aes-gcm 0.11 upgrade. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
gilcu3
left a comment
There was a problem hiding this comment.
Thank you for your contribution @metalurgical !
netrome
left a comment
There was a problem hiding this comment.
Thanks for contributing!
This PR upgrades the aes-gcm crate from version 0.10.3 to 0.11.0.