Skip to main content

RUST / DETERMINISTIC KEY WRAPPING

Wrap keys. Keep the context.

Authenticated key wrapping without nonce bookkeeping. Four ARX-KW variants, one Rust API, and context-bound envelopes for new applications.

0.5.0 · Rust 1.88+ · MIT

WRAP WITH A CONTEXTRust
use arx_kw::{gx::GX, ArxKW};

let envelope = GX::encrypt_envelope(
    &wrapping_key,
    &key_material,
    b"example.com/storage/v1",
)?;

Supply a securely generated wrapping key and high-entropy key material.

01

No nonce to manage

Deterministic encryption derives its cipher inputs from the authentication tag.

02

Bound to your application

Versioned envelopes bind the format, variant, and your application context.

03

Explicit secret ownership

SecretKey and SecretBytes wipe their owned buffers and redact debug output.

ONE SELF-DESCRIBING ENVELOPE

The bytes have a place.

Envelope v1 adds 24 bytes. The application context is supplied separately and bound through key derivation.

Header8 bytes
Authentication tag16 bytes
CiphertextYour wrapped key