Improves handling of legacy YubiKeys. Changes in SDK code:
Feature.isSupported will no longer return true for major version 0.
DeviceUtil.readInfo has a new override which accepts ScpKeyParameters to allow reading info over secure connections.
A big part of this PR are updates to device tests which discovered issues with NEO keys:
The test code was trying to open ManagementSession directly on any connection, which is not possible on NEO. Instead we need to use DeviceUtil.readInfo to synthesize the DeviceInfo without Management session and for some situations this session has to be opened in SCP mode. As a consequence of this, platform tests have to pass a UsbPid for USB connected YubiKeys to be able to call readInfo.
NEO's applications use their own version numbers which are not related the the YubiKey firmware version. This caused issues when we were testing for feature in runtime.
Improves handling of legacy YubiKeys. Changes in SDK code:
Feature.isSupported
will no longer return true for major version 0.DeviceUtil.readInfo
has a new override which accepts ScpKeyParameters to allow reading info over secure connections.A big part of this PR are updates to device tests which discovered issues with NEO keys:
DeviceUtil.readInfo
to synthesize the DeviceInfo without Management session and for some situations this session has to be opened in SCP mode. As a consequence of this, platform tests have to pass a UsbPid for USB connected YubiKeys to be able to call readInfo.