From aa8e5f5c04524d3d5c6f1d5b6c4616dbdb8d40be Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Fri, 18 Aug 2023 21:45:29 +0100 Subject: Update dependencies (#1181) --- atuin-client/src/encryption.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'atuin-client/src/encryption.rs') diff --git a/atuin-client/src/encryption.rs b/atuin-client/src/encryption.rs index d6c5f893..056c56d7 100644 --- a/atuin-client/src/encryption.rs +++ b/atuin-client/src/encryption.rs @@ -12,15 +12,15 @@ use std::{io::prelude::*, path::PathBuf}; use base64::prelude::{Engine, BASE64_STANDARD}; use chrono::{DateTime, Utc}; +pub use crypto_secretbox::Key; +use crypto_secretbox::{ + aead::{Nonce, OsRng}, + AeadCore, AeadInPlace, KeyInit, XSalsa20Poly1305, +}; use eyre::{bail, ensure, eyre, Context, Result}; use fs_err as fs; use rmp::{decode::Bytes, Marker}; use serde::{Deserialize, Serialize}; -pub use xsalsa20poly1305::Key; -use xsalsa20poly1305::{ - aead::{Nonce, OsRng}, - AeadInPlace, KeyInit, XSalsa20Poly1305, -}; use crate::{history::History, settings::Settings}; @@ -240,7 +240,7 @@ fn error_report(err: E) -> eyre::Report { #[cfg(test)] mod test { - use xsalsa20poly1305::{aead::OsRng, KeyInit, XSalsa20Poly1305}; + use crypto_secretbox::{aead::OsRng, KeyInit, XSalsa20Poly1305}; use crate::history::History; -- cgit v1.3.1