Comments (5)
Make sure that you specified all of the curve parameters correctly. Note that the words should be specified in the code in the opposite order since micro-ecc uses a little-endian convention.
from micro-ecc.
yes, I have convert all params to little-endian convertion. for example
p=fffffffe ffffffff ffffffff ffffffff ffffffff 00000000 ffffffff ffffffff
-->#define Curve_P_6 {0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE}
Could you please give me your EMAIL? I send the source code that I modified to you?
from micro-ecc.
from micro-ecc.
There was a bug in your omega_mult() function. Here is the corrected version:
static void omega_mult(uint32_t *p_result, uint32_t *p_right)
{
/* Multiply by (2^224 + 2^96 - 2^64 + 1). */
vli_set(p_result, p_right); /* 1 */
p_result[3 + NUM_ECC_DIGITS] = vli_add(p_result + 3, p_result + 3, p_right); /* 2^96 + 1 */
p_result[7 + NUM_ECC_DIGITS] = vli_add(p_result + 7, p_result + 7, p_right); /* 2^224 + 2^96 + 1 */
if(vli_sub(p_result + 2, p_result + 2, p_right))
{ /* Propagate borrow if necessary. */
uint i;
for(i = 2 + NUM_ECC_DIGITS; ; ++i)
{
--p_result[i];
if(p_result[i] != 0xffffffff)
{
break;
}
}
}
}
I recommend that you try the "Generalized Mersenne Reduction" method in http://www.isys.uni-klu.ac.at/PDF/2001-0126-MT.pdf (algorithms 5 and 6, on page 356). This should result in code similar to the secpr256r1 version (should be significantly faster).
from micro-ecc.
Yes, my signature passed. Thank you very much for your help, I will try that method later.
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.