PIV is slowly growing. Many intermediate bugs ;)

This commit is contained in:
Nicolas Stalder
2020-05-16 00:29:25 +02:00
parent 4d369e0d4c
commit 54424a56b7
+7
View File
@@ -33,7 +33,11 @@ pub enum Status {
////////////////////////////////
// 64XX: persistent memory unchanged (cf. SW2)
UnspecifiedNonpersistentExecutionError,
// 65XX: persistent memory changed (cf. SW2)
UnspecifiedPersistentExecutionError,
// 66XX: security related issues
///////////////////////////////
@@ -83,6 +87,9 @@ impl Into<u16> for Status {
u16::from_be_bytes([0x63, 0xc0 + x])
}
Self::UnspecifiedNonpersistentExecutionError => 0x6400,
Self::UnspecifiedPersistentExecutionError => 0x6500,
Self::LogicalChannelNotSupported => 0x6881,
Self::SecureMessagingNotSupported => 0x6882,
Self::CommandChainingNotSupported => 0x6884,