Comments (10)
Looks like you should be able to just use:
recid = p[curve->num_bytes] & 0x01
at uECC.c:1200 (in the current revision).
Technically you also need to account for overflow mod n, but that will basically never happen.
from micro-ecc.
Thanks! Do you want a pull request which does that? The problem is I have to change the API.
from micro-ecc.
Try it out and see if it works for you locally first. I'll think about whether/how to do an API change.
from micro-ecc.
Hmm. Didn't work. Still gets wrong answer about 50% of the time. I wonder if the "side channel" protection stuff is a factor here.
from micro-ecc.
OK, I'll look into it in more detail
from micro-ecc.
My mistake, it should be:
recid = p[num_words] & 0x01;
from micro-ecc.
Yes. Works great! I should have noticed that.
from micro-ecc.
+1 for this feature. It's great to have recovery ID.
from micro-ecc.
It would be great to see this small feature integrated into the API!
from micro-ecc.
For those who need recid and pubkey recovery feature.
try this trezor's library out, it is btc/eth blockchain friedly.
https://github.com/trezor/trezor-firmware/tree/master/crypto
from micro-ecc.
Related Issues (20)
- 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
- Expression cannot be used as a function
- Point addition of same point
- Different results on different platforms
- mbedtls_ecdh_gen_public speed dosen't improve HOT 1
- not fast enought HOT 1
- GCC + `-Wpedantic` throws warning about `__int128`
- 16-bit Implementation (MSP430)
- Will micro-ecc support for openharmony in thre future?
- Public key uncompression issue for secp384r1
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.