mirror of
https://github.com/librekeys/picoforge.git
synced 2026-07-28 08:01:19 -07:00
feat(ui): Add LibreKeys One Vendor Config to PicoForge
This commit is contained in:
@@ -35,6 +35,7 @@ impl GlobalDeviceState {
|
||||
pub enum UsbIdentityPreset {
|
||||
Custom,
|
||||
Generic,
|
||||
LibreKeys,
|
||||
PicoHsm,
|
||||
PicoFido,
|
||||
PicoOpenPgp,
|
||||
@@ -57,6 +58,11 @@ impl UsbIdentityPreset {
|
||||
match self {
|
||||
Self::Custom => ("Custom (Manual Entry)".into(), None, None),
|
||||
Self::Generic => ("Generic (FEFF:FCFD)".into(), Some("FEFF"), Some("FCFD")),
|
||||
Self::LibreKeys => (
|
||||
"LibreKeys One (1D50:619B)".into(),
|
||||
Some("1D50"),
|
||||
Some("619B"),
|
||||
),
|
||||
Self::PicoHsm => (
|
||||
"Pico Keys HSM (2E8A:10FD)".into(),
|
||||
Some("2E8A"),
|
||||
@@ -94,6 +100,7 @@ impl UsbIdentityPreset {
|
||||
|
||||
match (vid.as_str(), pid.as_str()) {
|
||||
("FEFF", "FCFD") => Self::Generic,
|
||||
("1D50", "619B") => Self::LibreKeys,
|
||||
("2E8A", "10FD") => Self::PicoHsm,
|
||||
("2E8A", "10FE") => Self::PicoFido,
|
||||
("2E8A", "10FF") => Self::PicoOpenPgp,
|
||||
@@ -116,6 +123,7 @@ impl UsbIdentityPreset {
|
||||
&[
|
||||
Self::Custom,
|
||||
Self::Generic,
|
||||
Self::LibreKeys,
|
||||
Self::PicoHsm,
|
||||
Self::PicoFido,
|
||||
Self::PicoOpenPgp,
|
||||
|
||||
Reference in New Issue
Block a user