Comments (2)
Your interpretation of the ecdsa_sign() is correct. As for why it is that way… I had thought that the bias attacks on ECDSA were only effective on binary fields, but after further research that was not correct (eg http://eprint.iacr.org/2013/346.pdf). So I will change it to fail on k >= n. It doesn't seem to be a significant issue for ECDH but it is reasonable to do the same thing there.
It turns out that there is another more serious issue, which is that the Montgomery ladder implementation of point multiplication gives timing information about the number of bits in the scalar. This leads to a simple timing attack on the ECDSA code to get "small" values of k, which (with enough samples) can then be used to extract the private key. This should be possible to fix using the countermeasure described in http://eprint.iacr.org/2011/232.pdf
(Note that the Montgomery ladder point multiplication is preferred for ECDH because it doesn't leak any timing information about the values of the scalar bits).
from micro-ecc.
Thanks for letting me know about this issue.
from micro-ecc.
Related Issues (20)
- cannot build with LLVM-embedded-toolchain-for-Arm HOT 1
- Problem validating C509 test vectors -- ECC signature does not validate HOT 1
- Support for P-384?
- Interoperability with python-ecdsa regarding the SECP160r1 curve HOT 2
- uECC_decompress() gives garbage when passed an already-decompressed key
- P-256 failing cases HOT 2
- asm_mult for uECC_PLATFORM == uECC_arm_thumb
- Arduino compatibility
- Does micro-ecc works with signature (secp256r1) where R or S is lower than 32 bytes? HOT 2
- Questions about ECDSA HOT 2
- Contact for responsible disclosure HOT 2
- Check for identity element is missing during verification
- Question about the public private key generation using secp160r1
- how to set the RNG function? HOT 2
- HASH out value differnet on same file? HOT 6
- Hard fault on cortex M0+
- With latest IAR ARM Embedded workbench version 9.32 not able to compile this code HOT 2
- Earlyclobber inline asm input registers
- easy-ecc compatability?
- secp160r1 incorrect signatures on ARM Cortex M0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro-ecc.