chore: Use the new name of Alphabet::RFC4648
varint
Some checks failed
Write changelog / write-changelog (push) Successful in 3s
Rust CI / Rust CI (push) Successful in 3m4s
CD / build-assets (x86_64-pc-windows-gnu) (push) Has been cancelled
CD / build-assets (x86_64-unknown-linux-gnu) (push) Has been cancelled
CD / build-assets (aarch64-unknown-linux-gnu) (push) Has been cancelled
CD / build-assets (x86_64-unknown-linux-musl) (push) Has been cancelled
CD / release (push) Has been cancelled
CD / build-assets (aarch64-unknown-linux-musl) (push) Has been cancelled
Some checks failed
Write changelog / write-changelog (push) Successful in 3s
Rust CI / Rust CI (push) Successful in 3m4s
CD / build-assets (x86_64-pc-windows-gnu) (push) Has been cancelled
CD / build-assets (x86_64-unknown-linux-gnu) (push) Has been cancelled
CD / build-assets (aarch64-unknown-linux-gnu) (push) Has been cancelled
CD / build-assets (x86_64-unknown-linux-musl) (push) Has been cancelled
CD / release (push) Has been cancelled
CD / build-assets (aarch64-unknown-linux-musl) (push) Has been cancelled
Based-on: dffd619b5e
This commit is contained in:
parent
dffd619b5e
commit
5cf401996b
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ pub fn totp_now(secret_base32: &str, hash_function: &TotpHash) -> LprsResult<(St
|
||||||
/// ## Errors
|
/// ## Errors
|
||||||
/// - If the given string not valid base32 string
|
/// - If the given string not valid base32 string
|
||||||
pub fn base32_decode(base32_string: &str) -> LprsResult<Vec<u8>> {
|
pub fn base32_decode(base32_string: &str) -> LprsResult<Vec<u8>> {
|
||||||
base32::decode(Base32Alphabet::RFC4648 { padding: true }, base32_string)
|
base32::decode(Base32Alphabet::Rfc4648 { padding: true }, base32_string)
|
||||||
.ok_or_else(|| LprsError::Base32("Invalid base32 string".to_owned()))
|
.ok_or_else(|| LprsError::Base32("Invalid base32 string".to_owned()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue