feat(handler): add apple encrypted archive handler - #1617
Open
elektrischermoench wants to merge 1 commit into
Open
feat(handler): add apple encrypted archive handler#1617elektrischermoench wants to merge 1 commit into
elektrischermoench wants to merge 1 commit into
Conversation
elektrischermoench
force-pushed
the
feat/handler-aea
branch
2 times, most recently
from
September 1, 2026 07:26
d2e706c to
685f5f0
Compare
Adds a handler for Apple Encrypted Archive files (magic AEA1). Parses the auth-data TLV fields to locate the WKMS FCS key URL, fetches the session key via HPKE (P-256 / HKDF-SHA256 / AES-256-GCM), and decrypts the payload using the python-aea library. Files without embedded WKMS fields are skipped with a warning. pyhpke, python-aea and its pyliblzfse dependency are not in nixpkgs, so they are built from PyPI in overlay.nix. python-aea uses enum.StrEnum without declaring a Python version bound, which breaks the whole CLI on the 3.10 we still support. It is therefore declared as a 3.11+ dependency and imported lazily, so on 3.10 archives are still identified, only not decrypted.
elektrischermoench
force-pushed
the
feat/handler-aea
branch
from
September 1, 2026 07:30
685f5f0 to
33422b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a handler for Apple Encrypted Archive files (magic AEA1). Parses the auth-data TLV fields to locate the WKMS FCS key URL, fetches the session key via HPKE (P-256 / HKDF-SHA256 / AES-256-GCM), and decrypts the payload using the python-aea library. Files without embedded WKMS fields are skipped with a warning.
New dependencies: python-aea, pyhpke, asn1crypto, requests.