trustcrypto / OnlyKey-Firmware

The OnlyKey Firmware runs on the OnlyKey itself and provides the core functionality of OnlyKey.
https://docs.crp.to/firmware.html
219 stars 40 forks source link

Improvement - ECC sign deterministic #16

Closed onlykey closed 8 years ago

onlykey commented 8 years ago

Use if (!uECC_sign_deterministic((uint8_t *)attestation_key, sha256_hash, 32, &ctx.uECC, signature, curve)) instead of uECC_sign

https://github.com/kmackay/micro-ecc/blob/master/test/test_ecdsa_deterministic.c.example

Need a SHA2 library that supports this or modify Brad Conte's Library https://github.com/B-Con/crypto-algorithms

onlykey commented 8 years ago

Thanks to Yohanes! https://github.com/yohanes/teensy-u2f