Skip to content

rage v0.11.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 03 Nov 10:53
1744661

rage

Added

  • Partial French translation!

Fixed

  • [Unix] Files can now be encrypted with rage --passphrase when piped over stdin, without requiring an explicit - argument as INPUT.

age

Added

  • New streamlined APIs for use with a single recipient or identity and a small amount of data (that can fit entirely in memory):
    • age::encrypt
    • age::encrypt_and_armor
    • age::decrypt
  • age::Decryptor::{decrypt, decrypt_async, is_scrypt}
  • age::IdentityFile::to_recipients
  • age::IdentityFile::with_callbacks
  • age::IdentityFile::write_recipients_file
  • age::IdentityFileConvertError
  • age::NoCallbacks
  • age::scrypt, providing recipient and identity types for passphrase-based encryption.
  • Partial French translation!

Changed

  • Migrated to i18n-embed 0.15, secrecy 0.10.
  • age::Encryptor::with_recipients now takes recipients by reference instead of by value. This aligns it with age::Decryptor (which takes identities by reference), and also means that errors with recipients are reported earlier. This causes the following changes to the API:
    • Encryptor::with_recipients takes impl Iterator<Item = &'a dyn Recipient> instead of Vec<Box<dyn Recipient + Send>>.
    • Verification of recipients and generation of stanzas now happens in Encryptor::with_recipients instead of Encryptor::wrap_output and Encryptor::wrap_async_output.
    • Encryptor::with_recipients returns Result<Self, EncryptError> instead of Option<Self>, and Encryptor::{wrap_output, wrap_async_output} return io::Result<StreamWriter<W>> instead of Result<StreamWriter<W>, EncryptError>.
    • age::EncryptError has a new variant MissingRecipients, taking the place of the None that Encryptor::with_recipients could previously return.
  • age::Decryptor is now an opaque struct instead of an enum with Recipients and Passphrase variants.
  • age::IdentityFile now has a C: Callbacks generic parameter, which defaults to NoCallbacks.
  • age::IdentityFile::into_identities now returns Result<Vec<Box<dyn crate::Identity>>, DecryptError> instead of Vec<IdentityFileEntry>.
  • age::Recipient::wrap_file_key now returns (Vec<Stanza>, HashSet<String>): a tuple of the stanzas to be placed in an age file header, and labels that constrain how the stanzas may be combined with those from other recipients.
  • age::plugin::RecipientPluginV1 now supports the labels extension.

Fixed

  • age::cli_common::read_identities once again correctly parses identity files that are a single line without a trailing newline. This broke in 0.10.0 due to an unrelated refactor.

Removed

  • age::decryptor::PassphraseDecryptor (use age::Decryptor with age::scrypt::Identity instead).
  • age::decryptor::RecipientsDecryptor (use age::Decryptor instead).
  • age::IdentityFileEntry

age-plugin 0.6.0

Added

  • age_plugin::PluginHandler
  • impl age_plugin::identity::IdentityPluginV1 for std::convert::Infallible
  • impl age_plugin::recipient::RecipientPluginV1 for std::convert::Infallible

Changed

  • Migrated to age-core 0.11.
  • age_plugin::recipient::RecipientPluginV1 has a new labels method. Existing implementations of the trait should either return HashSet::new() to maintain existing compatibility, or return labels that apply the desired constraints.
  • age_plugin::run_state_machine now supports the recipient-v1 labels extension.

Fixed

  • age_plugin::run_state_machine now takes an impl age_plugin::PluginHandler argument, instead of its previous arguments.
    • This fixes the change from the previous release, because the type parameters were basically impossible to set correctly when attempting to pass None.

age-core

Added

  • age_core::format:
    • FileKey::new
    • FileKey::init_with_mut
    • FileKey::try_init_with_mut
    • is_arbitrary_string

Changed

  • Migrated to secrecy 0.10.
  • age::plugin::Connection::unidir_receive now takes an additional argument to enable handling an optional fourth command.

New Contributors

Full Changelog: v0.10.0...v0.11.0