Progress: GetData/Verify works, next up: GeneralAuthenticate

This commit is contained in:
Nicolas Stalder
2020-05-15 00:19:55 +02:00
parent a56730ddc7
commit 007cb08265
4 changed files with 3 additions and 11 deletions
+1 -5
View File
@@ -8,11 +8,7 @@ use crate::{
types::{
ApduInterchange,
ClassRequest,
packet::{
self,
RawPacket,
},
tlv,
packet::RawPacket,
},
pipe::Pipe,
};
-1
View File
@@ -1,6 +1,5 @@
#![allow(non_camel_case_types)]
use heapless_bytes::{
Bytes,
consts,
Unsigned as _
};
+1 -2
View File
@@ -9,7 +9,6 @@ use crate::{
ApduInterchange,
MessageBuffer,
packet::{
self,
Chain,
Command,
DataBlock,
@@ -183,7 +182,7 @@ where
hprintln!("called piv app").ok();
let command = match iso7816::Command::try_from(&self.message) {
Ok(command) => command,
Err(error) => {
Err(_error) => {
hprintln!("could not parse command from APDU, ignoring {:?}", &self.message).ok();
return;
}
+1 -3
View File
@@ -1,6 +1,4 @@
use core::convert::TryInto;
use cortex_m_semihosting::hprintln;
// use cortex_m_semihosting::hprintln;
use heapless_bytes::Bytes;
use crate::constants::*;