-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix doubled sha256 implementations and the resulting compilation error #9
base: 67-1kb_ping_crash
Are you sure you want to change the base?
Fix doubled sha256 implementations and the resulting compilation error #9
Conversation
adamglozik
commented
Jul 12, 2018
- sha256 implementation kept in atecc508a.c, deleted from u2f_atecc.c
- sha256 functions delcared as extern
- the above solution solves the SETUP config compilation error originated from line 34 in u2f_atecc.c which messed up the scope of the doubled sha256 implementations
- sha256 implementation kept in atecc508a.c driver, deleted from u2f_atecc.c - sha256 functions delcared as extern. - the above solution solves the SETUP config compilation error originated from line 34 in u2f_atecc.c which messed up the scope of the doubled sha256 implementations
Porting Adam's PR #9 to current master. Citing its description: ``` Fix doubled sha256 implementations and the resulting compilation error - sha256 implementation kept in atecc508a.c, deleted from u2f_atecc.c - sha256 functions delcared as extern - the above solution solves the SETUP config compilation error originated from line 34 in u2f_atecc.c which messed up the scope of the doubled sha256 implementations ``` Tested with current wkey/rkey setup on UB10 and https://u2f.bin.coffee/ Signed-off-by: Szczepan Zalega <[email protected]>
Ports PR #9 to current master. Removes doubled sha256 implementation. Affected symbols: SHA_FLAGS SHA_HMAC_KEY res_digest u2f_sha256_start u2f_sha256_update u2f_sha256_finish compute_key_hash
Hi @adamglozik ! |
This PR could be moved to u2f-zero, as it is based on its code ( |
The port is equal with the PR, tested at the mentioned commit with U2F register/sign and configuring sessions, everything seem ok. |
Thank you for checking! |
Maintenance note: this PR is against original source code - U2F-Zero - to move to upstream. |