diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-02 13:38:22 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-05 10:17:30 +0200 |
commit | b1fbfa8eede1f2f9d003e49c027d5e4cb8a56bfe (patch) | |
tree | 4bb4e70f50de02ef09824256072f489242a13187 /include/stick10_commands.h | |
parent | 24b1ff2b610b3af78bdb894e17a31ea937dd0d3e (diff) | |
download | libnitrokey-b1fbfa8eede1f2f9d003e49c027d5e4cb8a56bfe.tar.gz libnitrokey-b1fbfa8eede1f2f9d003e49c027d5e4cb8a56bfe.tar.bz2 |
Support for command: is_aes_supported
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/stick10_commands.h')
-rw-r--r-- | include/stick10_commands.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/stick10_commands.h b/include/stick10_commands.h index 6df8727..e49e2a4 100644 --- a/include/stick10_commands.h +++ b/include/stick10_commands.h @@ -714,11 +714,15 @@ class ChangeUserPin : Command<CommandID::CHANGE_USER_PIN> { CommandTransaction; }; -// TODO why is it needed? class IsAESSupported : Command<CommandID::DETECT_SC_AES> { public: struct CommandPayload { - uint8_t password[20]; + uint8_t user_password[20]; + std::string dissect() const { + std::stringstream ss; + ss << " user_password:\t" << user_password<< std::endl; + return ss.str(); + } } __packed; typedef Transaction<command_id(), struct CommandPayload, struct EmptyPayload> |