aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 15:40:46 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-12-03 16:01:51 +0100
commit9e0c85241234ae607c7eea4bb9f3ee61762b5c0c (patch)
tree1afe00ccf03878493865ac275ca0791d177a20ab
parent5adc4b754de0a55f8c92dfbcd868630e65b4781f (diff)
downloadlibnitrokey-9e0c85241234ae607c7eea4bb9f3ee61762b5c0c.tar.gz
libnitrokey-9e0c85241234ae607c7eea4bb9f3ee61762b5c0c.tar.bz2
Update comments
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--include/stick10_commands_0.8.h2
-rw-r--r--unittest/constants.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/stick10_commands_0.8.h b/include/stick10_commands_0.8.h
index f905794..7de2177 100644
--- a/include/stick10_commands_0.8.h
+++ b/include/stick10_commands_0.8.h
@@ -49,7 +49,7 @@ namespace nitrokey {
public:
struct CommandPayload {
uint8_t temporary_admin_password[25];
- uint8_t type; //0-secret, 1-name
+ uint8_t type; //S-secret, N-name
uint8_t id; //multiple reports for values longer than 30 bytes
uint8_t data[30]; //data, does not need null termination
diff --git a/unittest/constants.py b/unittest/constants.py
index 3c19a9b..0897b42 100644
--- a/unittest/constants.py
+++ b/unittest/constants.py
@@ -2,7 +2,7 @@ from enum import Enum
from misc import to_hex
RFC_SECRET_HR = '12345678901234567890'
-RFC_SECRET = to_hex(RFC_SECRET_HR) # '3031323334353637383930...'
+RFC_SECRET = to_hex(RFC_SECRET_HR) # '31323334353637383930...'
# print( repr((RFC_SECRET, RFC_SECRET_, len(RFC_SECRET))) )