mirror of
https://github.com/trussed-dev/iso7816.git
synced 2026-06-20 04:16:14 -07:00
PIV is slowly growing. Many intermediate bugs ;)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user