diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2023-08-18 21:45:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-18 20:45:29 +0000 |
| commit | aa8e5f5c04524d3d5c6f1d5b6c4616dbdb8d40be (patch) | |
| tree | 74a027ed4cc186426851afc42cb0da23c3de043d /atuin-client/src/encryption.rs | |
| parent | Add kv map builder and list function (#1179) (diff) | |
| download | atuin-aa8e5f5c04524d3d5c6f1d5b6c4616dbdb8d40be.zip | |
Update dependencies (#1181)
Diffstat (limited to '')
| -rw-r--r-- | atuin-client/src/encryption.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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<E: std::fmt::Debug>(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; |
