KeyData.fromBytes constructor
Implementation
factory KeyData.fromBytes(List<int> response, KeySlot slot) {
final data = TlvData.parse(response).get(0x7F49);
if (data.hasValue(0x86)) {
return ECKeyData.fromBytes(response, slot);
} else {
return RSAKeyData.fromBytes(response, slot);
}
}