-
Notifications
You must be signed in to change notification settings - Fork 2
Fully featured FIO app #12
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
base: develop
Are you sure you want to change the base?
Fully featured FIO app #12
Conversation
Merge ledger hq changes, change icons
Build improvements, Speculos tests
They behave similar to hash functions
The code now pases original integration tests
This way derivation path is available for DH encoding
Changing newfundsreq data content format, introduce error specific to integrity checks.
applying parse not validate as it is supposed
Derivation path is serializes LE Remove unnecessary endian functions
List of hashes for integrity check is not updated at the moment...
Documentation and cleanup
Fix on device get app version test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole file could be simplified using up to date app-boilerplate/makefile as a reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TRY CATCH usage can be remove using _no_throw version of os_perso_derive_ and cx_ functions.
You could also use the helper from https://github.com/LedgerHQ/ledger-secure-sdk/blob/master/lib_standard_app/crypto_helpers.h.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored all code handling intermediate (not to be returned) secrets into keyDerivation.c and diffieHellman.c (+ hash.h) files where errors are handled by returning error value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many function can be removed if using the new standard_app lib from the SDK.
This improves the app code readability and helps removing some classical bugs.
|
Added guideline enforcer + fixed issues it found. |
Fixed: - Missing input value validation - Potential missing secret wiping from stack after use - String manipulation - Pointer arithmetic on void pointer - Trivial swich-case statements were removed - Replaced certain other memset calls
da25e74 to
9fddc72
Compare
|
hello @relatko, the CI checks shall be green to submit the PR. Please make the changes to have the CI green. Thank you. |
Remove exceptions from public and private key code
Main new features of the app:
Tutorial for the new app is available at:
https://kb.fioprotocol.io/user-guides/ledger-fio-app-tutorial
The new features are only deployed on the beta site: https://beta-dashboard.fioprotocol.io
The folder /doc/security contains documentation for security review.