Skip to content

TKeys with non-standard UDIs #150

@quite

Description

@quite

Caveat: this is me using a TKey flashed by myself, and with "random" UDI. I understand that we can be expected to be on our own in this case.

With the v1.1.0 release fixing the USS issue, and with my specific TKey, I ran into a changed pubkey because my UDI's ProductID (pid) happened to be pid >= UDIPIDCastor. I read the docs saying --force-full-uss Force use of 32 byte USS digest. Default is 31. and thought I was good. But there were details in the tkeyclient code. Though I see now that on main the docs have been adjusted, now saying Castor and later defaults to 32 bytes, nice (still, my homebrew TKey is not a Castor :)

So it looks like the v1.1.0 release of tkey-ssh-agent brought about the first prominent user-facing decision based on UDI.

On main I now also see that device-app will be based on ProductID. In my case, the function making that decision is going to return an error.

I wonder if anything can be done to cater for non-standard ProductIDs (etc)? Would it help to lock also on Tillitis VendorID (0x1337), when making hardcoded decisions for standard TKeys? But maybe that would still end up requiring various config flags, which could blow up complexity -- probably flags like --really-force-short-uss and --device-app {precastor,castor,foo} just to begin with. Perhaps folks like me should just be expected to also patch and build our own software (again, said in good faith).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions