forked from alemi/upub
fix: standard base64
This commit is contained in:
parent
5d3c222774
commit
9c9b5ec380
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ where
|
|||
fn verify_control_text(txt: &str, key: &str, control: &str) -> crate::Result<bool> {
|
||||
let pubkey = PKey::public_key_from_pem(key.as_bytes())?;
|
||||
let mut verifier = Verifier::new(MessageDigest::sha256(), &pubkey)?;
|
||||
let signature = base64::prelude::BASE64_URL_SAFE.decode(control)?;
|
||||
let signature = base64::prelude::BASE64_STANDARD.decode(control)?;
|
||||
Ok(verifier.verify_oneshot(&signature, txt.as_bytes())?)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue