56a74cdcc9
Replace 0 by MBEDTLS_ECP_DP_NONE to avoid IAR compiler complains
2019-09-10 17:58:20 +03:00
77233ec411
Fix misprint
2019-09-05 21:37:39 +03:00
79a11fa0d6
Explicitly nullify grp->id instead of freeing.
2019-08-16 16:10:34 +03:00
1f5e6abfb9
Remove extra mbedtls_ecp_group_free() call since the grp is free
...
at the top of the function.
2019-08-07 20:40:46 +03:00
1eeca41472
Improve macro hygiene
...
This commit improves hygiene and formatting of macro definitions
throughout the library. Specifically:
- It adds brackets around parameters to avoid unintended
interpretation of arguments, e.g. due to operator precedence.
- It adds uses of the `do { ... } while( 0 )` idiom for macros that
can be used as commands.
2019-02-19 17:59:00 +00:00
4f8e8e5805
Implement parameter validation for ECP module
2018-12-18 13:00:48 +00:00
be2371c3d9
Merge branch 'pr_348' into development-proposed
2018-04-04 09:18:27 +02:00
08f3ef1861
Basic support for Curve448, similar to the current level of support for Curve25519
2018-03-29 14:29:06 +01:00
18b78435dc
Fix a typo in a comment
2018-03-28 11:14:06 +02:00
54fc34ea68
Include order of Curve25519 base point in curve data
2018-03-28 11:08:30 +02:00
b069753313
ECP: Add module and function level replacement options.
2017-05-11 22:42:14 +01:00
7dadc2f259
ECP: Prevent freeing a buffer on stack
...
The function ecp_mod_koblitz computed the space for the result of a
multiplication optimally for that specific case, but unfortunately
the function mbedtls_mpi_mul_mpi performs a generic, suboptimal
calculation and needs one more limb for the result. Since the result's
buffer is on the stack, the best case scenario is that the program
stops.
This only happened on 64 bit platforms.
Fixes #569
2017-02-28 18:41:39 +00:00
0223ab9d38
Fix macroization of inline in C++
...
When compiling as C++, MSVC complains about our macroization of a keyword.
Stop doing that as we know inline is always available in C++
2015-10-05 11:41:36 +01:00
37ff14062e
Change main license to Apache 2.0
2015-09-04 14:21:07 +02:00
6fb8187279
Update date in copyright line
2015-07-28 17:11:58 +02:00
20af64dc2c
Still need to #define inline for MSVC
...
I only tested with VS2015 earlier, but previous versions apparently still
don't know that standard C99 keyword though it's documented on MSDN...
2015-07-07 23:21:30 +02:00
2505528be4
Rm obsolete defines for inline wiht MSVC
...
The "inline" keyword is supported since Visual Studio 2005 according to MSDN,
and we require Visual Studio 2010 or higher.
2015-07-01 17:22:36 +02:00
07894338a0
Rename M255 to Curve25519
2015-06-23 13:09:10 +02:00
c0696c216b
Rename mbedtls_mpi_msb to mbedtls_mpi_bitlen
2015-06-18 16:49:37 +02:00
e3a062ba1f
Rename ecp_use_known_dp -> mbedtls_ecp_group_load()
2015-05-11 18:46:47 +02:00
7b53889f05
Remove support for HAVE_INT8 and HAVE_INT16
2015-04-10 11:34:22 +02:00
2cf5a7c98e
The Great Renaming
...
A simple execution of tmp/invoke-rename.pl
2015-04-08 13:25:31 +02:00
7f8099773e
Rename include directory to mbedtls
2015-03-10 11:23:56 +00:00
fe44643b0e
Rename website and repository
2015-03-06 13:17:10 +00:00
00ab47026b
cleanup library and some basic tests. Includes, add guards to includes
2015-02-10 11:28:46 +00:00
860b51642d
Fix url again
2015-01-28 17:12:07 +00:00
085ab040aa
Fix website url to use https.
2015-01-23 11:06:27 +00:00
9698f5852c
Remove maintainer line.
2015-01-23 10:59:00 +00:00
19f6b5dfaa
Remove redundant "all rights reserved"
2015-01-23 10:54:00 +00:00
a658a4051b
Update copyright
2015-01-23 09:55:24 +00:00
967a2a5f8c
Change name to mbed TLS in the copyright notice
2015-01-22 14:28:16 +00:00
66d5d076f7
Fix formatting in various code to match spacing from coding style
2014-06-17 17:06:47 +02:00
9af723cee7
Fix formatting: remove trailing spaces, #endif with comments (> 10 lines)
2014-05-01 13:03:14 +02:00
cef4ad2509
Adapt sources to configurable config.h name
2014-04-30 16:40:20 +02:00
3d8fb63e11
Added missing MPI_CHK around mpi functions
2014-04-17 12:42:41 +02:00
78848375c0
Declare EC constants as 'const'
2014-04-11 13:58:41 +02:00
9af7d3a35b
Add fast reduction for the other Koblitz curves
2014-01-18 17:48:00 +01:00
8887d8d37c
Add mod_p256k1
...
Makes secp256k1 about 4x faster
2014-01-17 23:17:10 +01:00
ea499a7321
Add support for secp192k1
2014-01-17 21:41:39 +01:00
18e3ec9b4d
Add support for secp224k1
2014-01-17 21:41:39 +01:00
f51c8fc353
Add support for secp256k1 arithmetic
2014-01-10 18:17:18 +01:00
0c0476f92d
Disable ecp_use_curve25519() if not POLARSSL_ECP_DP_M255_ENABLED
2013-12-19 16:20:53 +01:00
69ab354239
Fix bug from stupid typo
2013-12-17 11:27:20 +01:00
14a96c5d8b
Avoid wasting memory with some curves
2013-12-17 11:27:20 +01:00
95b45b7bb2
Rename macros
2013-12-17 11:27:20 +01:00
baee5d4157
Add previously forgotten #ifdef's
2013-12-17 11:27:20 +01:00
81e1b102dc
Rm a few unneeded variables
2013-12-17 11:27:20 +01:00
1f82b041e7
Adapt ecp_group_free() to static constants
2013-12-17 11:27:20 +01:00
73cc01d7fa
Remove last non-static parts of known EC groups
2013-12-17 11:27:20 +01:00
731d08b406
Start using constants from ROM for EC groups
2013-12-17 11:27:20 +01:00