mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-22 01:11:00 +00:00
Change info to debug
This commit is contained in:
parent
45f7dbe532
commit
4feff4a894
4 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "http-signature-normalization-actix"
|
||||
description = "An HTTP Signatures library that leaves the signing to you"
|
||||
version = "0.3.0-alpha.5"
|
||||
version = "0.3.0-alpha.6"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
license-file = "LICENSE"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -16,7 +16,7 @@ This crate provides extensions the ClientRequest type from Actix Web, and provid
|
|||
actix = "0.10.0-alpha.1"
|
||||
actix-web = "3.0.0-alpha.1"
|
||||
thiserror = "0.1"
|
||||
http-signature-normalization-actix = { version = "0.3.0-alpha.5", default-features = false, features = ["sha-2"] }
|
||||
http-signature-normalization-actix = { version = "0.3.0-alpha.6", default-features = false, features = ["sha-2"] }
|
||||
sha2 = "0.8"
|
||||
```
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use log::{info, warn};
|
||||
use log::{debug, warn};
|
||||
use sha2::{Sha224, Sha256, Sha384, Sha512, Sha512Trunc224, Sha512Trunc256};
|
||||
|
||||
use super::{DigestCreate, DigestPart, DigestVerify};
|
||||
|
@ -13,7 +13,7 @@ fn verify(digest: &mut impl sha2::Digest, name: &str, parts: &[DigestPart], byte
|
|||
.iter()
|
||||
.find(|p| p.algorithm.to_lowercase() == name.to_lowercase())
|
||||
{
|
||||
info!("Verifying digest type, {}", name);
|
||||
debug!("Verifying digest type, {}", name);
|
||||
digest.input(bytes);
|
||||
let encoded = base64::encode(&digest.result_reset());
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use log::{info, warn};
|
||||
use log::{debug, warn};
|
||||
use sha3::{
|
||||
Keccak224, Keccak256, Keccak256Full, Keccak384, Keccak512, Sha3_224, Sha3_256, Sha3_384,
|
||||
Sha3_512,
|
||||
|
@ -16,7 +16,7 @@ fn verify(digest: &mut impl sha2::Digest, name: &str, parts: &[DigestPart], byte
|
|||
.iter()
|
||||
.find(|p| p.algorithm.to_lowercase() == name.to_lowercase())
|
||||
{
|
||||
info!("Verifying digest type, {}", name);
|
||||
debug!("Verifying digest type, {}", name);
|
||||
digest.input(bytes);
|
||||
let encoded = base64::encode(&digest.result_reset());
|
||||
|
||||
|
|
Loading…
Reference in a new issue