Giter Club home page Giter Club logo

Comments (6)

yashikada avatar yashikada commented on June 1, 2024

I think the issue is in the script inject_key.py which replace section flash_storage and set devicekey at position 0x0 (0x0F400 in flash) while the correct position is 0x400 (0x0F800 in flash).
When devicekey is set the firmware think the attestation key is already initialized and return error.
I used the script inject_key_bin.py (python3 inject_key_bin.py --key key.der --ctr 100 --bin build/u2f.bin) which don't replace section flash_storage but patch the exaction position, so the attestation cert remain 0xff (-1) and when certtool init is invoked attestation cert is set.

from u2f-token.

gl-sergei avatar gl-sergei commented on June 1, 2024

@yashikada thank you. Indeed, inject_key.py produced broken flash layout. #50 should fix it. Unfortunately, I don't have any devices around to test it. Can you please check if it works OK?

from u2f-token.

yashikada avatar yashikada commented on June 1, 2024

@gl-sergei sorry wrong test, doesn't works. I tested on demo site, report timeout, I tested on google report wrong key.

from u2f-token.

yashikada avatar yashikada commented on June 1, 2024

I removed patch of files src/cert/dump-der.py and src/u2f-apdu.c, works, so inject_key.py inject correctly the device key now.

from u2f-token.

gl-sergei avatar gl-sergei commented on June 1, 2024

@yashikada thank you for your test. I was finally able to set up stand and verify and fix it on stm32. Now it works for me. I'll close this issue. Feel free to reopen it if there are still any problems.

from u2f-token.

yashikada avatar yashikada commented on June 1, 2024

for me is working, thank you for the improvement.

from u2f-token.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.