Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed Nov 17, 2024
1 parent 2d7b48e commit b072f49
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ stderror = ["thiserror"]

[dependencies]
balloon-hash = { version = "0.4.0", default-features = false, optional = true, features = ["alloc"] }
base32 = { version = "0.4.0", default-features = false, optional = true }
base32 = { version = "0.5.1", default-features = false, optional = true }
base64 = { version = "0.22.0", default-features = false, optional = true, features = ["std"] }
digest = { version = "0.10.0", default-features = false, optional = true, features = ["mac"] }
getrandom = { version = "0.2.9", default-features = false, optional = true }
Expand All @@ -45,6 +45,6 @@ rust-argon2 = { version = "2.0.0", default-features = false, optional = true }
sha-1 = { version = "0.10.1", default-features = false, optional = true }
sha2 = { version = "0.10.6", default-features = false, optional = true }
sha3 = { version = "0.10.7", default-features = false, optional = true }
thiserror = { version = "1.0.40", default-features = false, optional = true }
thiserror = { version = "2.0.3", default-features = false, optional = true }
unicode-normalization = { version = "0.1.22", default-features = false, optional = true }
url = { version = "2.3.1", default-features = false, optional = true }
2 changes: 1 addition & 1 deletion src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl KeyBuilder {
/// Return the current key as a base 32 encoded string.
pub fn as_base32(&self) -> String {
base32::encode(
base32::Alphabet::RFC4648 { padding: false },
base32::Alphabet::Rfc4648 { padding: false },
self.key.clone().unwrap().as_slice(),
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/oath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ macro_rules! builder_common {

/// Sets the shared secret. This secret is passed as a base32 encoded string.
pub fn base32_key(&mut self, key: &str) -> &mut Self {
match base32::decode(base32::Alphabet::RFC4648 { padding: false }, &key) {
match base32::decode(base32::Alphabet::Rfc4648 { padding: false }, &key) {
Some(k) => {
self.key = Some(k);
}
Expand Down
2 changes: 1 addition & 1 deletion src/oath/key_uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl<'a> KeyUriBuilder<'a> {
uri.set_path(&label_final);

let secret_final = base32::encode(
base32::Alphabet::RFC4648 { padding: false },
base32::Alphabet::Rfc4648 { padding: false },
self.key.as_slice(),
);
uri.query_pairs_mut().append_pair("secret", &secret_final);
Expand Down

0 comments on commit b072f49

Please sign in to comment.