Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demos are having trouble working with the applet #3

Open
gregorjohannson opened this issue Apr 18, 2019 · 1 comment
Open

Demos are having trouble working with the applet #3

gregorjohannson opened this issue Apr 18, 2019 · 1 comment

Comments

@gregorjohannson
Copy link

I've successfully managed to install the applet on a JC 3.0.4 card from Idemia (Oberthur), following GP spec 2.2.1. The attestation certificate was used from the README examples.

The proprietary dependencies were swapped as follows:

  1. KeyBuidlerX.TYPE_AES_STATIC -> KeyBuilder.TYPE_AES
  2. KeyAgreementX.ALG_EC_SVDP_DH_PLAIN_XY -> KeyAgreement.ALG_EC_SVDP_DH_PLAIN

http://u2fdemo.appspot.com can register the authenticator, but testing fails.
https://demo.yubico.com/u2f is not capable of registering at all.

Do you have any ideas for what I might be doing wrong?

@tsenger
Copy link
Owner

tsenger commented Apr 18, 2019

Hi, I think the first swap (KeyBuidlerX.TYPE_AES_STATIC -> KeyBuilder.TYPE_AES) is fine.
But the result in the KeyAgreement is different if you use ALG_EC_SVDP_DH_PLAIN instead of ALG_EC_SVDP_DH_PLAIN_XY.

  • ALG_EC_SVDP_DH_PLAIN only returns the x coordinate of the point (32 bytes), while
  • ALG_EC_SVDP_DH_PLAIN_XY returns the x and the y coordinate (65 bytes).

see also this article

It is possible to calculate the y coordinate to a given x coordinate. But unfortunately I'm not hat deep in elliptic curves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants