Skip to content

Autocrypt 2#8318

Draft
link2xt wants to merge 4 commits into
mainfrom
link2xt/autocrypt2
Draft

Autocrypt 2#8318
link2xt wants to merge 4 commits into
mainfrom
link2xt/autocrypt2

Conversation

@link2xt

@link2xt link2xt commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Closes #8317

Closes #6520 (key selection is now based on Autocrypt 2 spec, we select not expired subkey with the closest expiration date and also make sure it is marked with a flag that says the key can be used to encrypt communications).
Closes #8224. For Autocrypt 2 keys we set creation timestamp of the primary key and fallback subkey to 0. These timestamps cannot be changed. Direct key signature we already recreate before deriving the public key, and fallback subkey signature we can also recreate each time. For rotating subkey there is no problem as it will be recreated each 10 days. Autocrypt 1 key generation is not changed, we will likely want to remove it eventually anyway once Autocrypt 2 key generation is enabled.

There is a reference Rust implementation in https://codeberg.org/autocrypt2/autocrypt-v2-cert/ as well, we want to keep it in sync but i'm not using it directly as we don't need deterministic key generation, have different error handling, need to set timestamps to 0, and there going to still be changes to the specification. It would be great to merge the codebases and turn this into a single implementation properly published as a crate.

@link2xt link2xt force-pushed the link2xt/autocrypt2 branch from d613423 to f08a85f Compare June 12, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant