rage
Added
- Support for new native age recipient types:
age1pq1..
--pqoption torage-keygen.AGE_PQC_REQUIREDenvironment variable forrageandrage-mount, with the following allowed values:YESrequires post-quantum recipients for encryption (fail-closed), and rejects files with recognized classic recipient stanzas on decryption (fail-open on unknown stanza kinds).ALLOW_ONLY_DECRYPTapplies only the encryption requirement.ALLOW_INSECURE(the default when unset or empty) does not apply any requirements (the previous behaviour).
Changed
- MSRV is now 1.87.0.
- MSRV for
rage-mount(behind themountfeature flag) is now 1.88.0. age1tag1..andage1tagpq1..recipients now produce version 2 tagged stanzas (p256tagv2andmlkem768p256tagv2). Files encrypted to these recipients can only be decrypted by identities that support the new stanzas; plugins that only recognise the previousp256tagandmlkem768p256tagstanzas need to be updated.- Invalid native
pq,tag, andtagpqrecipients are now reported as errors instead of being passed to an external plugin with the same name. rage-keygennow generates hybrid post-quantum keys by default. The prior classic identities can be generated withrage-keygen --pq=false.rageandrage-mountnow warn on standard error when an operation is allowed but would have been rejected byAGE_PQC_REQUIRED=YES. SetAGE_PQC_WARNINGS=VERBOSEfor more detail, orAGE_PQC_WARNINGS=SILENCE_I_KNOW_ITS_NOT_SAFEto suppress warnings.- On Unix,
rage -d -o FILEnow creates new plaintext files with mode0o600before applying the umask. Existing files retain their permissions. - Unused implicit Cargo dependency features have been removed.
Fixed
- Debian release builds no longer depend on Cargo's internal directory layout to locate generated shell completions and manpages. Packagers can set
RAGE_ASSETS_DIRto choose where the build script writes these files.
age
Added
- Support for new native age recipient types:
age::pq::{Identity, Recipient}
age::Decryptor::has_recipient_stanza_taglegacy-decryptandlegacyfeature flags. These gate the non-post-quantum APIs:legacy-decryptexposes just decryption, whilelegacyalso enables encryption. Default-enabled in this release, but expect these to be disabled by default in a future release.age::EncryptError::LegacyEncryptionDisabledage::cli_common::ReadError::{InvalidRecipientEncoding, LegacyEncryptionDisabled}
Changed
- MSRV is now 1.87.0.
- Migrated to
base64 0.23,chacha20poly1305 0.11,curve25519-dalek 5,hmac 0.13,rand 0.10,rsa 0.10. age::tag::Recipientnow producesp256tagv2stanzas instead ofp256tag.age::tagpq::Recipientnow producesmlkem768p256tagv2stanzas instead ofmlkem768p256tag.- Identity implementations that only recognise the previous
p256tagandmlkem768p256tagstanzas ignore the new ones, and need to be updated to decrypt files produced after this change. - The following APIs are now gated behind the new feature flags. Crate users that set
default-features = falseneed to enable the corresponding flag to keep using them:legacy-decrypt:age::x25519, andage::ssh(which also still requires thesshfeature flag).legacy:age::tag,age::x25519::Identity::generate, and thestd::str::FromStrandage::Recipientimpls forage::x25519::Recipientandage::ssh::Recipient.
age::cli_common:file_io::{StdoutWriter, OutputWriter}no longer expose buffered stdout contents in theirDebugformatting.read_recipientsno longer tries an external plugin when a native recipient encoding is invalid or its encryption support is disabled. It instead returnsReadError::InvalidRecipientEncoding(which carries both the recipient and the reason it is invalid, and is now also returned in place ofReadError::InvalidRecipientwhen no plugin can parse the recipient), orReadError::LegacyEncryptionDisabled.ReadErrornow abbreviates long recipients when displayed.
age::scrypt::Recipientnow returns thepostquantumlabel in its label set. It still cannot be combined with other recipients.- Unused implicit Cargo dependency features have been removed.
- Best-effort zeroization now covers more of the crate's buffers containing key material or plaintext.
Fixed
- Bech32 key parsing again rejects nonzero or excessive trailing padding bits. This fixes a regression introduced in 0.12.0:
age0.11.x rejected these keys. - Native recipient and identity parsers require the expected Bech32 prefix case: lowercase for recipients and uppercase for identities.
age::armor::ArmoredWriterno longer breaks line wrapping when flushed partway through a file.
Deprecated
age::x25519encryption:x25519::Identity::generate(useage::pq::Identity::generateinstead).x25519::Recipient
age::tagencryption:tag::Recipient(useage::tagpq::Recipientinstead).
age::sshencryption:ssh::Recipient(useage::pqinstead).
age-plugin 0.8.0
Changed
- MSRV is now 1.87.0.
- Migrated to
age-core 0.13. - Best-effort zeroization has been added to the crate's own buffers in:
age_plugin::print_new_identityage_plugin::run_state_machine
age-core
Added
age_core::primitives::hkdf_into
Changed
- MSRV is now 1.87.0.
- Migrated to
chacha20poly1305 0.11,hpke 0.15. age_core::plugin::Connectionnow wipes its stanza-parsing buffer when the connection is dropped, including after a read or parse error.age_core::primitives::{aead_decrypt, hpke_open}now return plaintext in asecrecy::SecretSlice<u8>instead of aVec<u8>. UseExposeSecretto borrow the bytes; the buffer is wiped on drop.age_core::primitives::hpke_opennow returnshpke::HpkeError::OpenErrorfor ciphertext shorter than an authentication tag, even if decapsulation would also fail.- Unused implicit Cargo dependency features have been removed.
Fixed
age_core::primitives::bech32_decodenow rejects nonzero or excessive trailing padding bits even when the Bech32 checksum is valid.
New Contributors
Full Changelog: v0.12.1...v0.13.0