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

Add secure teach-in #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zuckschwerdt
Copy link

The lib is working great and well written, so here is my addition of secure teach-in and secure PTM.

This adds

  • RORG constants for the secure modes
  • the D2-03-00 VLD EEP
  • a SEC_TI pseudo-EEP
  • SecureDevice with MAC verification and VAES decryption
  • Application translation from SECD to matching VLD D2-03-00 for application type PTM
  • Profile translation from VLD D2-03-00 to RPS F6-02-01
  • SecureStore for paired devices with teach-in and decryption
  • Basic tests for teach-in, verification and decryption
  • A commented example to get started

Well tested with PTM215 DB (implicit RLC mode) only, I couldn't acquire the new PTM215 DC :/
The explicit RLC isn't fully implemented, I hope this good enough to get support for secure mode going!

@zuckschwerdt
Copy link
Author

Added pycryptodome to the actions to complete the tests.
I didn't add pycryptodome to the requirements to keep the secure mode optional.

@coveralls
Copy link

coveralls commented Jan 10, 2021

Coverage Status

Coverage increased (+0.6%) to 91.959% when pulling 8b6a272 on zuckschwerdt:feat-secure into 12da815 on kipe:master.

@zuckschwerdt
Copy link
Author

Let me know if this PR is interesting to you and if I should enhance the tests to cover the fail cases!

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

Successfully merging this pull request may close these issues.

2 participants