feat: udptes
This commit is contained in:
@@ -13,9 +13,9 @@ use openssl::pkey::PKey;
|
||||
use openssl::sign::Verifier;
|
||||
use rust_util::util_clap::{Command, CommandError};
|
||||
|
||||
use crate::{cmdutil, digest, util};
|
||||
use crate::fido;
|
||||
use crate::fido::U2fV2Challenge;
|
||||
use crate::{cmdutil, digestutil, util};
|
||||
use crate::fidoutil;
|
||||
use crate::fidoutil::U2fV2Challenge;
|
||||
use crate::util::base64_encode;
|
||||
|
||||
pub struct CommandImpl;
|
||||
@@ -71,10 +71,10 @@ impl Command for CommandImpl {
|
||||
let u2fv2_challenge = U2fV2Challenge::new_challenge(challenge_hex, app_id, challenge_with_timestamp_prefix)?;
|
||||
let u2fv2_challenge_str = u2fv2_challenge.to_json();
|
||||
|
||||
let app_id_hash = digest::sha256(app_id);
|
||||
let challenge_hash = digest::sha256(&u2fv2_challenge_str);
|
||||
let app_id_hash = digestutil::sha256(app_id);
|
||||
let challenge_hash = digestutil::sha256(&u2fv2_challenge_str);
|
||||
|
||||
let status_tx = fido::start_status_updater();
|
||||
let status_tx = fidoutil::start_status_updater();
|
||||
|
||||
information!("App id: {}, Start sign...", app_id);
|
||||
debugging!("Wait timeout: {} ms", timeout_ms);
|
||||
|
||||
Reference in New Issue
Block a user