feat(notsecrets): X25519 identity and recipient with wrap/unwrap

Implements ECDH key wrapping via HKDF-SHA256 + ChaCha20Poly1305,
bech32 encode/decode for age1... recipients and AGE-SECRET-KEY-1... identities.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Joseph O'Brien
2026-04-01 20:49:31 -04:00
parent 2476daafa6
commit 6202c5dfe9
5 changed files with 242 additions and 2 deletions

View File

@@ -6,8 +6,8 @@ pub mod sources;
pub mod _legacy;
pub use error::AgeError;
pub use identities::{FileKey, Header, Identity, Stanza};
pub use recipients::Recipient;
pub use identities::{FileKey, Header, Identity, Stanza, X25519Identity};
pub use recipients::{Recipient, X25519Recipient};
pub use sources::{BitwardenSource, FileSource, PromptSource};
// Legacy API — kept for notstrap compatibility until Task 12.