summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-31 16:33:40 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:26 +0100
commit90e3e144728114189b5b33b4763b07e871b2e66c (patch)
tree44881b21ae7075c7f388befe195c0c0f6d46777d
parent4200d7428ac200fd7c0fb57e67aed9f492bfb3d5 (diff)
downloadlibnitrokey-90e3e144728114189b5b33b4763b07e871b2e66c.tar.gz
libnitrokey-90e3e144728114189b5b33b4763b07e871b2e66c.tar.bz2
Describe commands and mark unused
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--include/command_id.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/command_id.h b/include/command_id.h
index 9cace2f..a3806f0 100644
--- a/include/command_id.h
+++ b/include/command_id.h
@@ -67,15 +67,15 @@ enum class CommandID : uint8_t {
CHANGE_ADMIN_PIN = 0x15,
ENABLE_CRYPTED_PARI = 0x20,
- DISABLE_CRYPTED_PARI = 0x20 + 1,
+ DISABLE_CRYPTED_PARI = 0x20 + 1, //@unused
ENABLE_HIDDEN_CRYPTED_PARI = 0x20 + 2,
- DISABLE_HIDDEN_CRYPTED_PARI = 0x20 + 3,
- ENABLE_FIRMWARE_UPDATE = 0x20 + 4,
+ DISABLE_HIDDEN_CRYPTED_PARI = 0x20 + 3, //@unused
+ ENABLE_FIRMWARE_UPDATE = 0x20 + 4, //enables update mode
EXPORT_FIRMWARE_TO_FILE = 0x20 + 5,
GENERATE_NEW_KEYS = 0x20 + 6,
FILL_SD_CARD_WITH_RANDOM_CHARS = 0x20 + 7,
- WRITE_STATUS_DATA = 0x20 + 8,
+ WRITE_STATUS_DATA = 0x20 + 8, //@unused
ENABLE_READONLY_UNCRYPTED_LUN = 0x20 + 9,
ENABLE_READWRITE_UNCRYPTED_LUN = 0x20 + 10,
@@ -94,10 +94,10 @@ enum class CommandID : uint8_t {
SEND_STARTUP = 0x20 + 21,
SEND_CLEAR_STICK_KEYS_NOT_INITIATED = 0x20 + 22,
- SEND_LOCK_STICK_HARDWARE = 0x20 + 23,
+ SEND_LOCK_STICK_HARDWARE = 0x20 + 23, //locks firmware upgrade
PRODUCTION_TEST = 0x20 + 24,
- SEND_DEBUG_DATA = 0x20 + 25,
+ SEND_DEBUG_DATA = 0x20 + 25, //@unused
CHANGE_UPDATE_PIN = 0x20 + 26,
@@ -109,8 +109,8 @@ enum class CommandID : uint8_t {
SET_PW_SAFE_SLOT_DATA_2 = 0x65,
PW_SAFE_ERASE_SLOT = 0x66,
PW_SAFE_ENABLE = 0x67,
- PW_SAFE_INIT_KEY = 0x68,
- PW_SAFE_SEND_DATA = 0x69,
+ PW_SAFE_INIT_KEY = 0x68, //@unused
+ PW_SAFE_SEND_DATA = 0x69, //@unused
SD_CARD_HIGH_WATERMARK = 0x70,
DETECT_SC_AES = 0x6a,
NEW_AES_KEY = 0x6b