Commit Graph

220 Commits

Author SHA1 Message Date
Jaroslav Ban 71563d854c Added RNG for nRF52 series. Fixed infinite for loop because of int - wordcount_t mismatch 2020-10-27 23:51:07 +01:00
Ken MacKay 4b1709c17a Merge pull request #176 from benpicco/riot
platform-specific.inc: add support for RIOT-OS
2020-10-21 15:59:34 -07:00
Benjamin Valentin 6a53a0fbde platform-specific.inc: add support for RIOT-OS 2020-10-20 18:11:54 +02:00
Ken MacKay 51dfe37cea Add test vectors for public key generation 2020-10-12 16:51:00 -07:00
Ken MacKay d1ab664e02 Random initial Z when calculating the public key 2020-10-12 16:49:35 -07:00
Ken MacKay 1e6e86fa43 Add note about verifying public keys 2020-10-07 17:26:47 -07:00
Ken MacKay 6e9241793f Fix for #113 2020-10-07 12:27:10 -07:00
Ken MacKay 979d722c99 Cleanup emk files 2020-10-07 12:26:35 -07:00
Ken MacKay 01dd76e728 Fix for #148 2020-10-07 12:09:37 -07:00
Ken MacKay c1402e768a Merge pull request #143 from westin123/master
Conditionally removed vararg related macros for platforms where they …
2020-10-07 11:50:05 -07:00
westin123 66ef25a371 Update uECC.c
Added uECC_arm_thumb2
2020-10-07 13:02:43 -05:00
Ken MacKay 1b5f5cea51 Fix for #168 2020-10-07 10:47:40 -07:00
Ken MacKay 622a7f82ac Merge pull request #135 from junjiequ/patch-1
Update README.md
2020-10-07 09:59:11 -07:00
Ken MacKay 8935f0b94b Merge pull request #125 from vlovich/patch-1
Fix static annotation for uECC_valid_point
2020-10-07 09:58:40 -07:00
Westin Sykes 867e40b21e Conditionally removed vararg related macros for platforms where they are not used to prevent issues with compilers that don't support GCC features. 2018-08-23 16:06:19 -05:00
JJ_Q 725f37d601 Update README.md
Fixed the a typo.
2018-03-28 21:12:10 +02:00
Vitali Lovich d2f1bd6766 Fix static annotation for uECC_valid_point
Resolves #124
2017-08-16 17:34:23 -07:00
Ken MacKay 601bd11062 Fix for #111 2017-06-19 18:52:33 -07:00
Ken MacKay a76bd3f047 Merge pull request #114 from msembinelli/update_readme
Fix broken sec1 url in README
2017-06-17 10:26:51 -07:00
Matthew Sembinelli f8128a2b5b Fix broken sec1 url in README 2017-06-17 00:05:54 -06:00
Ken MacKay d037ec8954 Add note that uECC_VLI_NATIVE_LITTLE_ENDIAN affects key compatiblity v1.0 2017-05-21 11:05:04 -07:00
Ken MacKay 899a4396fc Merge pull request #106 from koh-osug/master
Update platform-specific.inc
2017-05-21 10:40:11 -07:00
Karsten Ohme e0af5a895b Update platform-specific.inc
Fix for Visual Studio 2015 compilation to find necessary libraries
2017-05-21 19:35:48 +02:00
Ken MacKay a148ae42f5 Merge pull request #95 from d00616/arduino_library
Add Arduino library manager support.
2017-05-21 09:57:39 -07:00
Frank Holtz 7c781edd6f Add Arduino library manager support. 2017-02-11 16:50:31 +01:00
Ken MacKay 14222e062d Merge pull request #85 from mtausig/master
Renamed variables 'private' and 'public' to prevent compilation problems with C++
2016-07-27 08:04:48 -07:00
Mathias Tausig 8d0af43866 Renamed variables named 'private' and 'public' to prevent compilation problems with C++ 2016-07-27 16:54:07 +02:00
Ken MacKay e862f7c5a1 Improve Thumb multiplication performance a bit (#67) 2016-04-23 22:50:41 -07:00
Ken MacKay d671b1cc22 Add faster ARM multiplication code using UMAAL (#69)
On ARM platforms that support UMAAL, this new code should speed up curve
operations by 15-20%. There is automatic detection of UMAAL support
using compiler macros, but if it doesn't work for a given platform,
#define uECC_ARM_USE_UMAAL to 1 or 0 as desired.
2016-04-20 21:22:40 -07:00
Ken MacKay b6c0cdbe7d Add functions to get the private/public key size for a curve (#73) 2016-03-08 21:29:40 -08:00
Ken MacKay 171475934d Merge pull request #74 from carlescufi/master
Avoid warnings when compiling without uECC_VLI_NATIVE_LITTLE_ENDIAN
2016-03-08 18:58:05 -08:00
cacu af1a5c75a0 Avoid warnings when compiling without uECC_VLI_NATIVE_LITTLE_ENDIAN 2016-03-08 20:30:59 +01:00
Ken MacKay bcc8143add Merge pull request #72 from carlescufi/master
Add a new compile-time macro to use the local native format for VLI
2016-03-08 07:59:43 -08:00
cacu ceae2ca088 Fix curly brace placement 2016-03-08 09:49:04 +01:00
cacu eff564675d Fix code formatting and document the fact that input arrays must be word
aligned
2016-03-08 09:47:02 +01:00
cacu 289a8e0340 Several fixes singled out in the pull request discussion thread. 2016-03-07 18:08:08 +01:00
cacu 778effd967 Add a new uECC_VLI_NATIVE_LITTLE_ENDIAN compile-time macro that enables
fully native little endian platforms interfacing with little endian byte
streams to avoid using additional stack space and pre and post byte
reversals
2016-03-07 13:09:22 +01:00
cacu 01f15fb6b3 Add a new compile-time macro to use the local native format for VLI
handling. This is useful for little-endian machines that have to
interface with protocol stacks using little-endian byte ordering.
2016-03-01 22:29:41 +01:00
Ken MacKay b970244fa1 Merge pull request #71 from mdxs/fix_typo
Fixed small typos in comments
2016-02-29 19:40:47 -08:00
mdxs 9dbd82890f Fixed small typos in comments 2016-03-01 00:40:47 +01:00
Ken MacKay ae17aaaf13 Merge pull request #64 from swilson/master
Provide API access to the built-in RNG code.
2016-01-24 19:19:04 -08:00
Sean Wilson 35423ba878 Provide API access to the built-in RNG code. 2016-01-15 14:50:31 -05:00
Ken MacKay 467c49e7cf Add fast square asm for AVR (#50) 2016-01-12 21:22:01 -08:00
Ken MacKay 7db3158822 Improve ARM asm a bit (particularly for Thumb devices) 2016-01-09 21:16:44 -08:00
Ken MacKay 39bedb17a2 Fast AVR asm mmod is for secp256k1 (#50) 2016-01-07 23:21:33 -08:00
Ken MacKay f870194aae Add fast multiply asm for AVR (#50) 2016-01-07 23:13:58 -08:00
Ken MacKay d18c132149 Merge pull request #62 from aeruder/master
miscellaneous documentation and whitespace cleanups
2015-12-23 14:23:30 -08:00
Andrew Ruder 451d53a62e uECC_HashContext => const uECC_HashContext
This is an important piece of "documentation" as it indicates to the
caller that a uECC_HashContext can be initialized and subsequently
used multiple times (for multiple signatures).
2015-12-23 15:42:14 -06:00
Andrew Ruder 0d853de6d1 uECC_verify: fix prototype to indicate public_key
The prototype incorrectly used 'private_key' as the name
of the first argument (rather than 'public_key').  Docs and
function definition were already correctly using 'public_key'
2015-12-23 10:24:58 -06:00
Andrew Ruder 6b0566beb6 uECC.h uECC.c: whitespace cleanups
Just removing trailing whitespace.
2015-12-23 10:24:53 -06:00