Menu

#894 Support for HMAC-SHA1 with OnlyKey

closed
nobody
None
1
2021-12-22
2021-02-26
No

OnlyKey features Yubikey-compatible HMAC-SHA1 challenge-response support.
However, it seems like OnlyKeys are not working with Password Safe.
I think that this can be due to missing OnlyKey's VID/PID (0x1d50/0x60fc) in Password Safe.
Can you add that VID/PID to the supported devices list?
I'm linking a similar issue solved in KeepassXC by whitelisting that VID/PID:
https://github.com/keepassxreboot/keepassxc/pull/3352

Cheers and thank you for your nice password manager!

Marco

Related

Feature Requests: #894

Discussion

  • Rony Shapiro

    Rony Shapiro - 2021-02-27

    Sure. I can set up a version for you to test, if you wish. Windows or Linux?

     
    👍
    1
  • Marco Bellaccini

    Great!
    I'd go with Windows for the test.

     
  • Marco Bellaccini

    Thank you!
    I've tested it and results are pretty good.

    WHAT IS WORKING:
    - generating and writing a key to the hw token
    - opening pwsafe db with 2FA (passphrase + hw token)

    WHAT IS WORKING DIFFERENTLY W.R.T. YUBIKEYS:
    - before using the OnlyKey (both for the setup phase and normal usage), you have to unlock it with your PIN
    - if you set "hmackeymode" to 1 through OnlyKey app (default is 0), there's no need to touch the key when opening password db (still, you've to unlock it with your PIN before using it)

    WHAT IS NOT WORKING:
    - pwsafe cannot read hw token Serial Number (it displays "Error reading YubiKey")
    - if you forget to unlock the OnlyKey with the PIN before using it, sometimes pwsafe displays a "Wrong password" alertbox, other times pwsafe crashes and dumps debugging info to a file

    Apart from these minor issues, the overall functionality is good.

     
  • Paul

    Paul - 2021-10-11

    Hi Marco,

    Could you please try to add support for the GoTrust Idem key in the same way as support for OnlyKey was added?

    # OnlyKey (FIDO2 / U2F)
    ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc"

    # GoTrust Idem Key
    ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="f143"

    Thanks for your great work.

    Paul

     
  • Rony Shapiro

    Rony Shapiro - 2021-10-13

    Hi Paul,

    Marco's the one who asked for OnlyKey support, I'm the one who implemented it.
    Can you give me a reference to GoTrust Idem key?

     
    • Paul

      Paul - 2021-10-14

      Hi Rony,

      I am sorry for the confusion , my bad.

      The specification from the official page is here:
      Secure Element Specifications

      Java Card 3.0.4 on GP 2.2.1
      Symmetric: 3DES, AES(128, 192, 256 bits)
      Hash:SHA-1, SHA-224,SHA-256,SHA-384,SHA-512
      RSA: RSASigning 512 bits up to 2048 bits key
      ECC: P-160 bits up to P-521 bits
      Key Pair Generation: RSA 512 bits up to 2048 bits, ECC P-160 bits up to
      

      P-521 bits
      FIPS 140-2 Level 3 certified security element

      Official page: https://www.gotrustid.com/idem-key

      The PID/VID I have found here (also for other keys):
      https://github.com/Yubico/libu2f-host/blob/master/70-u2f.rules

      I am the owner of one Idem key, so if you need some output e.g from OpenSC
      project:( https://github.com/OpenSC/OpenSC/wiki ) using the real key, just
      let me know.

      Thanks.

      Paul

      st 13. 10. 2021 v 20:45 odesílatel Rony Shapiro ronys@users.sourceforge.net
      napsal:

      Hi Paul,

      Marco's the one who asked for OnlyKey support, I'm the one who implemented
      it.
      Can you give me a reference to GoTrust Idem key?


      Status: open
      Group: Next_Release_(example)
      Created: Fri Feb 26, 2021 03:37 PM UTC by Marco Bellaccini
      Last Updated: Mon Oct 11, 2021 08:44 PM UTC
      Owner: nobody

      OnlyKey https://onlykey.io features Yubikey-compatible HMAC-SHA1
      challenge-response support.
      However, it seems like OnlyKeys are not working with Password Safe.
      I think that this can be due to missing OnlyKey's VID/PID (0x1d50/0x60fc)
      in Password Safe.
      Can you add that VID/PID to the supported devices list?
      I'm linking a similar issue solved in KeepassXC by whitelisting that
      VID/PID:
      https://github.com/keepassxreboot/keepassxc/pull/3352

      Cheers and thank you for your nice password manager!

      Marco

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/passwordsafe/feature-requests/894/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Feature Requests: #894

  • Rony Shapiro

    Rony Shapiro - 2021-11-03

    I've added the vendor id you've specified along with Yubikey's and OnlyKey's. Either the vendor ID is incorrect, or the device's API is significantly different from the other two.
    Without a device for me to work with, I'm afraid there's not much more I can do.

     
    • Paul

      Paul - 2021-11-08

      Hi Rony,

      I have searched for some tool , how to verify PID/VID of my Idem key. I
      have found USBDeview (freeware) from Nirsoft.
      Using this tool I got this output:

      USB Devices ListCreated by using USBDeview http://www.nirsoft.net/
      Device NameDescriptionDevice TypeConnectedSafe To UnplugDisabledUSB HubDrive
      LetterSerial NumberRegistry Time 1Registry Time 2VendorIDProductIDFirmware
      RevisionUSB ClassUSB SubClassUSB ProtocolHub / PortComputer NameVendor
      NameProduct
      NameParentId PrefixService NameService DescriptionDriver FilenameDevice
      ClassDevice MfgFriendly NamePowerUSB VersionDriver DescriptionDriver
      VersionDriver
      InfSectionDriver InfPathInstance IDCapabilitiesInstall TimeFirst Install
      TimeConnect TimeDisconnect Time
      Idem Key USB Composite Device Unknown Yes Yes No No 212001003937 08.11.2021
      22:43:53 05.10.2021 17:01:41 32a3 3201 1.13 00 00 00 R90SP21S
      6&775a615&0 usbccgp @usb.inf,%GenericParent.SvcDesc%;Microsoft USB Generic
      Parent Driver usbccgp.sys (Standard USB Host Controller) 100 mA 2.00 USB
      Composite Device 10.0.19041.488 Composite.Dev.NT usb.inf
      USB\VID_32A3&PID_3201\212001003937 Removable, UniqueID, SurpriseRemovalOK

      Output contains perhaps some valuable information for you, however VID/PID
      seems to be different: VID_32A3&PID_3201 than I have stated before
      (perhaps generic ones * "1fc9"/"f143"*) . Could you please try this
      combination one more time?

      Thanks for your time and have a nice day.

      Paul

      st 3. 11. 2021 v 20:18 odesílatel Rony Shapiro ronys@users.sourceforge.net
      napsal:

      I've added the vendor id you've specified along with Yubikey's and
      OnlyKey's. Either the vendor ID is incorrect, or the device's API is
      significantly different from the other two.
      Without a device for me to work with, I'm afraid there's not much more I
      can do.


      Status: open
      Group: Next_Release_(example)
      Created: Fri Feb 26, 2021 03:37 PM UTC by Marco Bellaccini
      Last Updated: Thu Oct 28, 2021 07:14 PM UTC
      Owner: nobody

      OnlyKey https://onlykey.io features Yubikey-compatible HMAC-SHA1
      challenge-response support.
      However, it seems like OnlyKeys are not working with Password Safe.
      I think that this can be due to missing OnlyKey's VID/PID (0x1d50/0x60fc)
      in Password Safe.
      Can you add that VID/PID to the supported devices list?
      I'm linking a similar issue solved in KeepassXC by whitelisting that
      VID/PID:
      https://github.com/keepassxreboot/keepassxc/pull/3352

      Cheers and thank you for your nice password manager!

      Marco

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/passwordsafe/feature-requests/894/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Feature Requests: #894

  • Rony Shapiro

    Rony Shapiro - 2021-12-22
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.