Reduce log verbosity
This commit is contained in:
parent
57a196d3ed
commit
12705aa737
@ -137,8 +137,7 @@ impl SecretsStore {
|
|||||||
pub fn try_decrypt(&self, cipher: &[u8]) -> Result<(AnkSharedSecretHash, Vec<u8>)> {
|
pub fn try_decrypt(&self, cipher: &[u8]) -> Result<(AnkSharedSecretHash, Vec<u8>)> {
|
||||||
let nonce = Nonce::from_slice(&cipher[..12]);
|
let nonce = Nonce::from_slice(&cipher[..12]);
|
||||||
|
|
||||||
for (address, secret) in self.shared_secrets.iter() {
|
for (_, secret) in self.shared_secrets.iter() {
|
||||||
log::debug!("Attempting decryption with key {} for {}", secret, address);
|
|
||||||
let engine = Aes256Gcm::new(secret.as_byte_array().into());
|
let engine = Aes256Gcm::new(secret.as_byte_array().into());
|
||||||
|
|
||||||
if let Ok(plain) = engine.decrypt(
|
if let Ok(plain) = engine.decrypt(
|
||||||
@ -154,7 +153,6 @@ impl SecretsStore {
|
|||||||
|
|
||||||
// We try unconfirmed secrets
|
// We try unconfirmed secrets
|
||||||
for secret in self.unconfirmed_secrets.iter() {
|
for secret in self.unconfirmed_secrets.iter() {
|
||||||
log::debug!("Attempting decryption with unconfirmed key {}", secret);
|
|
||||||
let engine = Aes256Gcm::new(secret.as_byte_array().into());
|
let engine = Aes256Gcm::new(secret.as_byte_array().into());
|
||||||
|
|
||||||
if let Ok(plain) = engine.decrypt(
|
if let Ok(plain) = engine.decrypt(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user