Code Monkey home page Code Monkey logo

Comments (7)

landgenoot avatar landgenoot commented on June 12, 2024

https://github.com/Glamdring/epassport-reader.git

from polling-station-app.

wkmeijer avatar wkmeijer commented on June 12, 2024

After some fiddeling the clone from epassport-reader works.

What the connection with the passport needs to do:

  • read public key
  • signing transactions

from polling-station-app.

wkmeijer avatar wkmeijer commented on June 12, 2024

Copied most of the epassport-reader app to an activity in digital-voting-pass-app. The activity can now be loaded when phone detects an NFC chip and can read and display data from it.

from polling-station-app.

wkmeijer avatar wkmeijer commented on June 12, 2024

Can read 1806 bits from DG15, but haven't succeeded in isolating the public key from that.
My passport has a 256 bit brainpoolP256r1 curve, so public key must be 32 byte?
http://www.passport.go.kr/img/download/vol2.pdf might be interesting to read futher

from polling-station-app.

wkmeijer avatar wkmeijer commented on June 12, 2024

App reads the correct data from DG15,
for passports <2014 this is 226 bytes
for passports >2014 this is 377 bytes

from polling-station-app.

wkmeijer avatar wkmeijer commented on June 12, 2024

App can now sign 8 bytes of data with the passport.
The passport returns 192 bytes of signed data. (not sure if this is the intended behavior, will look into it later) SignedData is different each time the same string is signed, which is a sign (pun not intended) the passport does actually sign the data, since the signing algorithm is non-deterministic.

from polling-station-app.

wkmeijer avatar wkmeijer commented on June 12, 2024

Writing tests for the connection with the passport will be a lot of work, since the inputstreams and data from the datagroups in the passport need to be mocked. Not sure if this is worth it.

from polling-station-app.

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.