Commit Graph

  • 541b3a7802 Merge pull request #230 from kmackay/hcca master Ken MacKay 2024-11-13 19:34:49 -08:00
  • a24112de66 Implement mitigation for hcca attack hcca Ken MacKay 2024-11-12 08:44:34 -08:00
  • fe8ed90abc Merge pull request #211 from Prabhuk/master Ken MacKay 2023-04-20 09:20:24 -07:00
  • a029d90af0 Update ARM inline assembly constraints. prabhukr 2023-04-19 08:17:51 -07:00
  • 13721361f7 Merge pull request #209 from LevelHome/dmaestas/gitignore Ken MacKay 2023-03-22 19:48:39 -07:00
  • 7ad0bbb501 updates .gitignore to ignore *.a, *.o, and *.so dmaestas 2023-03-22 16:53:45 -05:00
  • b335ee812b Merge pull request #191 from gridware/a-house-divided-cannot-stand Ken MacKay 2022-03-28 14:56:06 -07:00
  • 625beefa21 asm_arm.inc: use RESUME_SYNTAX everywhere Andrew Jeddeloh 2022-03-28 14:06:38 -07:00
  • 24c60e2435 Add test vector for ECDSA secp256k1 v1.1 Ken MacKay 2020-12-24 17:45:25 -08:00
  • 15e1a74649 Merge pull request #177 from jaroban/master Ken MacKay 2020-10-31 17:46:45 -07:00
  • 71563d854c Added RNG for nRF52 series. Fixed infinite for loop because of int - wordcount_t mismatch Jaroslav Ban 2020-10-27 23:51:07 +01:00
  • 4b1709c17a Merge pull request #176 from benpicco/riot Ken MacKay 2020-10-21 15:59:34 -07:00
  • 6a53a0fbde platform-specific.inc: add support for RIOT-OS Benjamin Valentin 2020-10-20 18:10:24 +02:00
  • 51dfe37cea Add test vectors for public key generation Ken MacKay 2020-10-12 16:51:00 -07:00
  • d1ab664e02 Random initial Z when calculating the public key Ken MacKay 2020-10-12 16:49:35 -07:00
  • 1e6e86fa43 Add note about verifying public keys Ken MacKay 2020-10-07 17:26:47 -07:00
  • 6e9241793f Fix for #113 Ken MacKay 2020-10-07 12:27:10 -07:00
  • 979d722c99 Cleanup emk files Ken MacKay 2020-10-07 12:26:35 -07:00
  • 01dd76e728 Fix for #148 Ken MacKay 2020-10-07 12:09:37 -07:00
  • c1402e768a Merge pull request #143 from westin123/master Ken MacKay 2020-10-07 11:50:05 -07:00
  • 66ef25a371 Update uECC.c westin123 2020-10-07 13:02:43 -05:00
  • 1b5f5cea51 Fix for #168 Ken MacKay 2020-10-07 10:47:40 -07:00
  • 622a7f82ac Merge pull request #135 from junjiequ/patch-1 Ken MacKay 2020-10-07 09:59:11 -07:00
  • 8935f0b94b Merge pull request #125 from vlovich/patch-1 Ken MacKay 2020-10-07 09:58:40 -07:00
  • 867e40b21e Conditionally removed vararg related macros for platforms where they are not used to prevent issues with compilers that don't support GCC features. Westin Sykes 2018-08-23 16:05:02 -05:00
  • 725f37d601 Update README.md JJ_Q 2018-03-28 21:12:10 +02:00
  • d2f1bd6766 Fix static annotation for uECC_valid_point Vitali Lovich 2017-08-16 17:34:23 -07:00
  • 601bd11062 Fix for #111 Ken MacKay 2017-06-19 18:51:53 -07:00
  • a76bd3f047 Merge pull request #114 from msembinelli/update_readme Ken MacKay 2017-06-17 10:26:51 -07:00
  • f8128a2b5b Fix broken sec1 url in README Matthew Sembinelli 2017-06-17 00:05:54 -06:00
  • d037ec8954 Add note that uECC_VLI_NATIVE_LITTLE_ENDIAN affects key compatiblity v1.0 Ken MacKay 2017-05-21 11:05:04 -07:00
  • 899a4396fc Merge pull request #106 from koh-osug/master Ken MacKay 2017-05-21 10:40:11 -07:00
  • e0af5a895b Update platform-specific.inc Karsten Ohme 2017-05-21 19:35:48 +02:00
  • a148ae42f5 Merge pull request #95 from d00616/arduino_library Ken MacKay 2017-05-21 09:57:40 -07:00
  • 7c781edd6f Add Arduino library manager support. Frank Holtz 2017-02-11 16:50:31 +01:00
  • 14222e062d Merge pull request #85 from mtausig/master Ken MacKay 2016-07-27 08:04:48 -07:00
  • 8d0af43866 Renamed variables named 'private' and 'public' to prevent compilation problems with C++ Mathias Tausig 2016-07-27 16:47:16 +02:00
  • e862f7c5a1 Improve Thumb multiplication performance a bit (#67) Ken MacKay 2016-04-23 22:50:41 -07:00
  • d671b1cc22 Add faster ARM multiplication code using UMAAL (#69) Ken MacKay 2016-04-20 21:22:40 -07:00
  • b6c0cdbe7d Add functions to get the private/public key size for a curve (#73) Ken MacKay 2016-03-08 21:29:40 -08:00
  • 171475934d Merge pull request #74 from carlescufi/master Ken MacKay 2016-03-08 18:58:05 -08:00
  • af1a5c75a0 Avoid warnings when compiling without uECC_VLI_NATIVE_LITTLE_ENDIAN cacu 2016-03-08 20:30:59 +01:00
  • bcc8143add Merge pull request #72 from carlescufi/master Ken MacKay 2016-03-08 07:59:43 -08:00
  • ceae2ca088 Fix curly brace placement cacu 2016-03-08 09:49:04 +01:00
  • eff564675d Fix code formatting and document the fact that input arrays must be word aligned cacu 2016-03-08 09:47:02 +01:00
  • 289a8e0340 Several fixes singled out in the pull request discussion thread. cacu 2016-03-07 18:08:08 +01:00
  • 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 cacu 2016-03-07 13:09:22 +01:00
  • 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. cacu 2016-03-01 22:29:41 +01:00
  • b970244fa1 Merge pull request #71 from mdxs/fix_typo Ken MacKay 2016-02-29 19:40:47 -08:00
  • 9dbd82890f Fixed small typos in comments mdxs 2016-03-01 00:40:47 +01:00
  • ae17aaaf13 Merge pull request #64 from swilson/master Ken MacKay 2016-01-24 19:19:04 -08:00
  • 35423ba878 Provide API access to the built-in RNG code. Sean Wilson 2016-01-15 14:50:31 -05:00
  • 467c49e7cf Add fast square asm for AVR (#50) Ken MacKay 2016-01-12 21:22:01 -08:00
  • 7db3158822 Improve ARM asm a bit (particularly for Thumb devices) Ken MacKay 2016-01-09 21:16:44 -08:00
  • 39bedb17a2 Fast AVR asm mmod is for secp256k1 (#50) Ken MacKay 2016-01-07 23:21:33 -08:00
  • f870194aae Add fast multiply asm for AVR (#50) Ken MacKay 2016-01-07 23:13:58 -08:00
  • d18c132149 Merge pull request #62 from aeruder/master Ken MacKay 2015-12-23 14:23:30 -08:00
  • 451d53a62e uECC_HashContext => const uECC_HashContext Andrew Ruder 2015-12-23 09:46:24 -06:00
  • 0d853de6d1 uECC_verify: fix prototype to indicate public_key Andrew Ruder 2015-12-23 09:44:06 -06:00
  • 6b0566beb6 uECC.h uECC.c: whitespace cleanups Andrew Ruder 2015-12-23 09:42:04 -06:00
  • 584d13e91f test_ecdsa_deterministic: add hash size argument Andrew Ruder 2015-12-23 10:16:54 -06:00
  • 0e249d974a Merge pull request #60 from emargolis/master Ken MacKay 2015-11-01 08:07:32 -08:00
  • 61bd1ada6f Added new API functions: uECC_curve_num_bytes() and uECC_curve_num_n_bytes(). Evgeni Margolis 2015-11-01 01:39:57 -07:00
  • 28fdb2c363 Fix ARM Thumb-1 build (#59) Ken MacKay 2015-10-23 09:05:21 -07:00
  • e4d264b582 Note that secp224r1 is now supported. static Ken MacKay 2015-10-12 21:52:44 -07:00
  • 8768d701b3 Update README Ken MacKay 2015-10-12 21:51:53 -07:00
  • 12d16b6b67 Clean up some header files. Ken MacKay 2015-10-12 21:51:39 -07:00
  • 1affc1b75c Add AVR asm implementations for runtime curve selection. Ken MacKay 2015-10-11 21:16:00 -07:00
  • 1b1f0a6ae0 Simplify fast ARM asm for add/sub Ken MacKay 2015-10-10 21:47:19 -07:00
  • c712249e23 Allow tests to build with non-default curve support. Ken MacKay 2015-09-28 22:20:49 -07:00
  • 096495aeb7 Don't include unnecessary code when only 1 curve size is supported. Ken MacKay 2015-09-28 22:20:19 -07:00
  • 4014bbd378 Fix formatting. Ken MacKay 2015-09-25 21:07:49 -07:00
  • 12651728ea Addressed review comments to PR #58. Main change: Removed clamping via subtraction update in the uECC_generate_random_int function. Evgeni Margolis 2015-09-24 00:21:49 -07:00
  • 7b115fdf93 Updated and generalized random number generation function (uECC_generate_random_int). This function is also used internally. In the new implementation when the random number is outside of the requested range it is corrected by subtraction instead of requesting new random number. Evgeni Margolis 2015-09-20 22:47:39 -07:00
  • 8b3838ea5f Removed unused "curve" parameter from uECC_vli_nativeToBytes and uECC_vli_bytesToNative functions. Evgeni Margolis 2015-09-20 01:38:31 -07:00
  • 6826dd4789 Make bits2int reduce mod n (#53) Ken MacKay 2015-09-19 15:59:47 -07:00
  • 0283b542ef Convert hash to int in sign/verify (#53) Ken MacKay 2015-09-19 15:39:54 -07:00
  • 4ae15e365b Updated so that private keys are always the correct length. Ken MacKay 2015-09-19 15:00:59 -07:00
  • 1341d3dce5 Fix fast ARM mult/square asm for Xcode Ken MacKay 2015-09-13 20:44:36 -07:00
  • a2c5132576 Some work on fixing ARM asm for Xcode compiler Ken MacKay 2015-09-13 15:35:16 -07:00
  • 8f760302b5 Fix Thumb-1 assembly Ken MacKay 2015-09-13 14:50:37 -07:00
  • f58c04fdec Minor cleanup Ken MacKay 2015-09-09 18:26:25 -07:00
  • 69744ae539 Added uECC_generate_random_int(), and made uECC_vli_cmp() constant-time. Ken MacKay 2015-08-28 20:40:39 -07:00
  • 41207c563a Make the default optimization level be 2 Ken MacKay 2015-08-28 20:03:21 -07:00
  • 24bba15ec1 bitcount_t, wordcount_t, and cmpresult_t don't depend on uECC_WORD_SIZE Ken MacKay 2015-08-28 20:01:58 -07:00
  • 856a90df3b Cache the values of curve->num_words and curve->num_n_words. Ken MacKay 2015-08-28 19:59:56 -07:00
  • e9ac0d230b Make uECC_RNG_NUM_TRIES modifiable at compile time. Ken MacKay 2015-08-28 19:30:46 -07:00
  • 74f6d2d9d7 Directly expose vli functions if uECC_ENABLE_VLI_API != 0 Ken MacKay 2015-08-26 23:10:46 -07:00
  • ca9e456f42 Added new define (uECC_SUPPORT_COMPRESSED_POINT) and new API functions. Evgeni Margolis 2015-07-08 20:14:05 -07:00
  • 2cc5e9211a Add an intermediate optimization level where only add/sub are "fast". Ken MacKay 2015-08-23 15:49:24 -07:00
  • 5d6644e23f Make wordcount_t signed, and remove swordcount_t. Ken MacKay 2015-08-23 13:07:26 -07:00
  • c250083ccd Use constant-time vli_isZero() and vli_equal() functions. Ken MacKay 2015-08-23 13:00:15 -07:00
  • a6a4bdd5e0 Default POSIX/Windows RNG should be treated as user-set RNG. Ken MacKay 2015-08-23 12:47:30 -07:00
  • 4fed9753f0 Add API for internal functions. Ken MacKay 2015-08-12 22:17:33 -07:00
  • dfcc9b4ec5 Generate the correct number of bits for k when num_n_words != num_words. Ken MacKay 2015-08-08 16:04:33 -07:00
  • ac6de20ea5 Only declare functions if needed. (#50) Ken MacKay 2015-08-05 22:15:35 -07:00
  • 5f01beb717 Add fast ARM asm; cleaned up code. Added optimization setting. (#50) Ken MacKay 2015-08-01 14:34:58 -07:00
  • 08ae3fd516 Add small ARM asm. (#50) Ken MacKay 2015-07-27 21:28:41 -07:00
  • 876e32ccce Add curve-specific mmod functions. (#50) Ken MacKay 2015-07-24 22:24:44 -07:00
  • 25941ccc4d Initial, unreasonably slow implementation of multiple curve support. (#50) Ken MacKay 2015-07-15 22:35:57 -07:00