-
Notifications
You must be signed in to change notification settings - Fork 459
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
Support for 16-bit processor #23
Comments
|
It is certainly possible. You basically need to add support for I recommend implementing asm versions of vli_add(), vli_sub(), vli_mult(), Depending on what your timeline is, I can implement the necessary C code On Mon, Mar 2, 2015 at 12:28 PM, Johannes notifications@github.com wrote:
|
Ok, i implemented the typedefs and the functions for the 160 bit curve based on the implementations for the 8 bit and 32 bit processor. |
Some notes:
On Tue, Mar 3, 2015 at 3:08 PM, Johannes notifications@github.com wrote:
|
Ok, thank you. (Lines are relating to my fork) /* Accept only if v == r. */
return vli_equal(rx, r) Sign fails at line 2275: if(!g_rng((uint8_t *)k, sizeof(k)) || (l_tries++ >= MAX_TRIES))
{
return 0;
} The code is in the forked repo (I didn't commit the #define PLATFORM etc. macros because I hardcoded them for simplicity, but I think they aren't the reason for failing. I'll later change them.) Do you have any ideas? |
If you are just using test_ecdsa.c for testing, you need to modify it so Your omega_mult() function has an error on line 906; it should be p_result[1] On Thu, Mar 5, 2015 at 9:04 AM, Johannes notifications@github.com wrote:
|
Yeah, that's it! But sometimes (1 out of 4) the signing fails. I think that's because of the number_generator? |
Yes, signing only fails if the RNG doesn't generate a good value. I'm kind On Thu, Mar 5, 2015 at 9:38 AM, Johannes notifications@github.com wrote:
|
May I ask what happened to the fork that was created? The link to the fork is no longer valid, and I cannot find a 16-bit version of uECC on GitHub either... is the code still available somewhere? Would be great to finish the 16-bit version, and if possible add it to the uECC repo. |
Hi,
would it be possible to port uECC to an 16 port processor (a MSP430)?
What must be changed in order to achieve this?
The text was updated successfully, but these errors were encountered: