aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-03-18 16:10:10 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-03-19 08:18:45 +0100
commit486da104571bb881c66b33d59e4cb30800320344 (patch)
treecd1de860a4f5615e9ec9e682f414483c8aec8172
parent3788515d6546971a3ac6e46769fb8d6e6d24e159 (diff)
downloadlibnitrokey-486da104571bb881c66b33d59e4cb30800320344.tar.gz
libnitrokey-486da104571bb881c66b33d59e4cb30800320344.tar.bz2
Storage v0.54: enable 320 bit OTP secret and auth commands
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--NitrokeyManager.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 0320ebb..7b8deaa 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -906,16 +906,16 @@ using nitrokey::misc::strcpyT;
//authorization command is supported for versions equal or below:
auto m = std::unordered_map<DeviceModel , int, EnumClassHash>({
{DeviceModel::PRO, 7},
- {DeviceModel::STORAGE, 999},
+ {DeviceModel::STORAGE, 53},
});
return get_minor_firmware_version() <= m[device->get_device_model()];
}
bool NitrokeyManager::is_320_OTP_secret_supported(){
- //authorization command is supported for versions equal or below:
+ // 320 bit OTP secret is supported by version bigger or equal to:
auto m = std::unordered_map<DeviceModel , int, EnumClassHash>({
{DeviceModel::PRO, 8},
- {DeviceModel::STORAGE, 999},
+ {DeviceModel::STORAGE, 54},
});
return get_minor_firmware_version() >= m[device->get_device_model()];
}