chore: rm comments

This commit is contained in:
2022-04-13 00:22:04 +08:00
parent 7c486dfa82
commit 295ceef6df

View File

@@ -97,9 +97,6 @@ impl Command for CommandImpl {
let counter = &sign_data[1..=4]; let counter = &sign_data[1..=4];
let signature = &sign_data[5..]; let signature = &sign_data[5..];
// let client_data = u2fv2_challenge_str.as_bytes().to_vec();
// let app_id_hash = sha256(app_id.as_bytes());
// let client_data_hash = sha256(&client_data[..]);
let counter_u32 = u32::from_be_bytes([counter[0], counter[1], counter[2], counter[3]]); let counter_u32 = u32::from_be_bytes([counter[0], counter[1], counter[2], counter[3]]);
// application (32B) + user presence (1B) + counter (4B) + client data hash (32B) // application (32B) + user presence (1B) + counter (4B) + client data hash (32B)
let mut signed_message = Vec::with_capacity(128); let mut signed_message = Vec::with_capacity(128);
@@ -129,7 +126,6 @@ impl Command for CommandImpl {
information!("- presence : {}", user_presence_flag); information!("- presence : {}", user_presence_flag);
information!("- counter : {}", counter_u32); information!("- counter : {}", counter_u32);
information!("- signature: {}", hex::encode(&signature)); information!("- signature: {}", hex::encode(&signature));
// success!("Key handle used: {}", base64::encode(&handle_used));
information!("Key handle: {}", hex::encode(&handle_used)); information!("Key handle: {}", hex::encode(&handle_used));
information!("Signed message: {}", hex::encode(&signed_message)); information!("Signed message: {}", hex::encode(&signed_message));
} }