Skip to content

Add support for upcoming encryption format v3#6

Merged
migueldemoura merged 4 commits intomasterfrom
mdemoura/blob-v3
Mar 3, 2021
Merged

Add support for upcoming encryption format v3#6
migueldemoura merged 4 commits intomasterfrom
mdemoura/blob-v3

Conversation

@migueldemoura
Copy link
Contributor

Bumps the version of the generated encrypted blob from 2 to 3.

Bumps the version of the generated encrypted blob from `2` to `3`.

To allow decryption of the older version `2` encrypted blobs with the
same binary, we import both versions of the `hpke` crate.
This is behind the optional `blob_legacy_version` cargo feature,
enabled by default. Decryption of both blob versions will happen
transparently by leveraging the prepended version byte.

We're keeping most of this as copy-paste, but may eventually
encapsulate it properly if the upgrade path continues to resemble
this one, i.e., same interface but different types.
@migueldemoura migueldemoura marked this pull request as ready for review March 2, 2021 18:31
@migueldemoura migueldemoura merged commit 604b0fb into master Mar 3, 2021
@migueldemoura migueldemoura deleted the mdemoura/blob-v3 branch March 3, 2021 10:30
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.

2 participants