Commit Graph

3329 Commits

Author SHA1 Message Date
Janos Follath
d74aa47380 Remove unused code from PKCS1v15 test suite 2016-04-18 10:12:05 +01:00
Simon Butcher
f20ab8941f Add missing config dependencies to PKCS1 V15 tests 2016-04-13 01:41:49 +01:00
Simon Butcher
8435f9e8ec Add missing stdlib.h header to rsa sample programs 2016-04-13 01:38:54 +01:00
Simon Butcher
de62b6e396 Fixes error and exit paths in rsa sample programs 2016-04-12 17:36:34 +01:00
Janos Follath
fa4a88a8eb Fix memory leaks in example programs. 2016-04-12 16:45:10 +01:00
Janos Follath
8970fd6ab9 Add tests to cover PKCS1 v1.5 signature functions.
The reported memory leak should have been spotted by
make memcheck
But it wasn't. Keeping the tests for better coverage.
2016-04-12 16:44:30 +01:00
Simon Butcher
cb713bb35a Merge branch 'mbedtls-1.3-restricted' 2016-04-10 00:06:50 +01:00
Simon Butcher
d255c0e430 Adds test_suite_pkcs1_v15 to tests/Makefile 2016-04-10 00:03:16 +01:00
Simon Butcher
bee7819819 Fix ChangeLog for backport of IOTSSL-621 2016-04-09 00:16:41 +01:00
Janos Follath
d95e8d1cb4 Included tests for the overflow
Conflicts:
	library/rsa.c
2016-04-09 00:16:41 +01:00
Janos Follath
bedc728fed Add Changelog entry for current branch 2016-04-09 00:16:40 +01:00
Simon Butcher
c7971b51ce Fix for backprt of IOTSSL-628
Corrections to constand and function names changed between 1.3 and 2.1
2016-04-09 00:16:40 +01:00
Simon Butcher
c0dfe440c7 Fix ChangeLog after merging fix for IOTSSL-628 2016-04-09 00:16:40 +01:00
Janos Follath
21b967137d Extended ChangeLog entry 2016-04-09 00:16:40 +01:00
Janos Follath
fb9d33047a Move underflow test to make time constant 2016-04-09 00:16:40 +01:00
Janos Follath
532d62f900 Add Changelog entry for current branch 2016-04-09 00:16:40 +01:00
Janos Follath
d886c4a419 Included test for integer underflow. 2016-04-09 00:16:40 +01:00
Janos Follath
33857f4c3d Update default configuration
Change the default settings for SSL and modify the tests accordingly.
2016-04-09 00:16:40 +01:00
Simon Butcher
fb2304a640 Fix ChangeLog for backport of IOTSSL-621 2016-03-17 11:03:14 +00:00
Janos Follath
6e5fb63cf6 Included tests for the overflow
Conflicts:
	library/rsa.c
2016-03-17 10:51:13 +00:00
Janos Follath
7f1d78b560 Add Changelog entry for current branch 2016-03-17 10:50:59 +00:00
Simon Butcher
0bc725f295 Fix for backprt of IOTSSL-628
Corrections to constand and function names changed between 1.3 and 2.1
2016-03-17 00:57:18 +00:00
Simon Butcher
da51d9cbab Fix ChangeLog after merging fix for IOTSSL-628 2016-03-16 23:31:03 +00:00
Janos Follath
e8864dd066 Extended ChangeLog entry 2016-03-16 23:30:22 +00:00
Janos Follath
1d114d2efa Move underflow test to make time constant 2016-03-16 23:29:30 +00:00
Janos Follath
45a5f7406d Add Changelog entry for current branch 2016-03-16 23:28:24 +00:00
Janos Follath
19db48e16a Included test for integer underflow. 2016-03-16 23:20:11 +00:00
Simon Butcher
77bc55dc4c Merge branch 'mbedtls-1.3' 2016-03-16 23:13:30 +00:00
Janos Follath
afe799f2eb Fix the broken pkcs1 v1.5 test.
The random buffer handed over to the test function was too small
and the remaining bytes were generated by the default (platform
dependant) function.
2016-03-16 11:11:16 +00:00
Janos Follath
53eb0d1f5a Fix the backport of pkcs1 v1.5 test suite.
The test suite was not properly backported and it remained unnoticed,
because it was not compile due to the change in the naming of the
compile time requirements.
2016-03-16 10:26:12 +00:00
Janos Follath
4dfecabb97 Update default configuration
Change the default settings for SSL and modify the tests accordingly.
2016-03-14 13:40:43 +00:00
Janos Follath
7c3be6b97e Removing 'if' branch from the fix.
This new error shouldn't be distinguishable from other padding errors.
Updating 'bad' instead of adding a new 'if' branch.
2016-03-01 22:28:42 +00:00
Janos Follath
f1225eaffc Add tests for the bug IOTSSL-619.
The main goal with these tests is to test the bug in question and
they are not meant to test the entire PKCS#1 v1.5 behaviour. To
achieve full test coverage, further test cases are needed.
2016-03-01 22:28:31 +00:00
Janos Follath
e003f50e6e Add Changelog entry for current branch 2016-03-01 22:28:13 +00:00
Janos Follath
4ed7376a5d Length check added 2016-03-01 22:27:14 +00:00
Simon Butcher
a91d85e331 Fix for net_usleep() timing selftest on mingw
In mingw32, net_usleep() was failing to sleep for the given period, and was
sleeping in microseconds, not milliseconds. Fix backported from mbed TLS 2.x of
using the Win32 Sleep() API call rather than using the timeout of select().
2016-01-15 14:36:08 +00:00
Manuel Pégourié-Gonnard
54f2c490ed Avoid build errors with -O0 due to assembly 2016-01-08 15:30:03 +01:00
Manuel Pégourié-Gonnard
20715dc73b Make ar invocation more portable
armar doesn't understand the syntax without dash. OTOH, the syntax with dash
is the only one specified by POSIX, and it's accepted by GNU ar, BSD ar (as
bundled with OS X) and armar, so it looks like the most portable syntax.

fixes #386
2016-01-08 15:28:40 +01:00
Manuel Pégourié-Gonnard
faae6d2019 Fix backporting mistakes in previous 5 commits 2016-01-08 15:24:46 +01:00
Manuel Pégourié-Gonnard
40510a3a79 Update ChangeLog for latest PR merged
fixes #309
2016-01-08 15:22:41 +01:00
Janos Follath
2db440d2f1 Improved on the previous fix and added a test case to cover both types
of carries.
2016-01-08 15:22:05 +01:00
Janos Follath
2b806fad7b Removed recursion from fix #309. 2016-01-08 15:20:29 +01:00
Janos Follath
ff5317e99b Improved on the fix of #309 and extended the test to cover subroutines. 2016-01-08 15:19:14 +01:00
Janos Follath
87f1494809 Tests and fix added for #309 (inplace mpi doubling). 2016-01-08 15:18:03 +01:00
Manuel Pégourié-Gonnard
a3a1cd33d1 Update reference to attack in ChangeLog
We couldn't do that before the attack was public
2016-01-08 15:11:12 +01:00
Simon Butcher
84181adae8 Change version number to 1.3.16
Changed version for library files and yotta module
2016-01-04 22:49:30 +00:00
Simon Butcher
302c5fed24 Added _ENABLE_MD5_SIGNATURES into features list
Specifically, 'POLARSSL_SSL_ENABLE_MD5_SIGNATURES' into version_features.c
2016-01-04 14:41:31 +00:00
Simon Butcher
d7fe6fbd76 Fix for MPI divide on MSVC
Resolves multiple platform issues when building bignum.c with Microsoft
Visual Studio.
2016-01-03 22:39:18 +00:00
Simon Butcher
a39690e7bf Correction to ChangeLog
Corrected function name for rsa_rsassa_pkcs1_v15_sign()
2016-01-02 00:49:12 +00:00
Simon Butcher
14400c8fb0 Merge memory leak fix into branch 'mbedtls-1.3'
Merge of fix for memory leak in RSA-SSA signing - #372
2016-01-02 00:28:19 +00:00