You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OTP slot name is sent to the device using the SendOTPData command which can store 30 bytes of data. Yet the firmware only stores the first 15 bytes of the slot name.
For slot names with more than 30 bytes, libnitrokey will raise a TooLongStringException in strcpyT called here. For slot names with more than 15 but less than or exactly 30 bytes, libnitrokey will not raise an error and just send the full data to the device which will then truncate the slot name.
In my opinion, libnitrokey should check the slot name length and raise a TooLongStringException if the slot name is too long.
The text was updated successfully, but these errors were encountered:
The OTP slot name is sent to the device using the
SendOTPData
command which can store 30 bytes of data. Yet the firmware only stores the first 15 bytes of the slot name.For slot names with more than 30 bytes, libnitrokey will raise a
TooLongStringException
instrcpyT
called here. For slot names with more than 15 but less than or exactly 30 bytes, libnitrokey will not raise an error and just send the full data to the device which will then truncate the slot name.In my opinion, libnitrokey should check the slot name length and raise a
TooLongStringException
if the slot name is too long.The text was updated successfully, but these errors were encountered: