Simon Butcher
85c2a928ed
Update yotta version
2016-06-27 19:50:36 +01:00
Simon Butcher
e180b1e00d
Merge branch 'development'
2016-06-27 19:45:10 +01:00
Simon Butcher
46125fbb73
Updates ChangeLog with final changes for release
2016-06-27 19:43:55 +01:00
Simon Butcher
905cef6c2c
Changed library version number to 2.3.0
2016-06-27 19:36:45 +01:00
Simon Butcher
1c71965d46
Fixes armcc builds in all.sh
...
MBEDTLS_NV_SEED needs to be disabled in builds without filesystem IO.
2016-06-27 19:02:12 +01:00
Simon Butcher
cff625f841
Fixes break in mingw build
...
Postbuild step failed when building with mingw
2016-06-27 15:15:11 +01:00
Simon Butcher
eebf1b9380
Various fixes for NV SEED feature in all.sh
2016-06-27 01:42:39 +01:00
Simon Butcher
284b4c9927
Fixes all.sh script for filesystem IO test build
...
MBEDTLS_ENTROPY_NV_SEED is dependent on platform code unless an
alternative implementation is provided, therefore needs to be disabled
in the disabled filesystem IO build.
2016-06-26 15:44:34 +01:00
Simon Butcher
3d26513650
Fix for config.pl if no arguments are passed
2016-06-26 15:44:20 +01:00
Simon Butcher
36b0c55cad
Fix for config.pl if no arguments are passed
2016-06-23 21:57:06 +01:00
Simon Butcher
ab069c6b46
Merge branch 'development' into development-restricted
2016-06-23 21:42:26 +01:00
Brian J Murray
e7be5bdb96
Fixed unchecked calls to mbedtls_md_setup in rsa.c ( #502 )
...
* Fixed unchecked calls to mbedtls_md_setup in rsa.c:
* style fixes
2016-06-23 20:57:03 +01:00
Simon Butcher
71ebc58932
Changes to check-names.sh script to accept yotta constants
2016-06-23 20:02:07 +01:00
Simon Butcher
b2c81b12bb
Added target_config.h as a custom header for yotta use
2016-06-23 13:56:06 +01:00
Simon Butcher
b6a73c9b76
Add provision to create the entropy seedfile for selftest sample
...
In the selftest sample application, if no seedfile is present, one will be
created so the test can execute.
2016-06-23 11:46:41 +01:00
Simon Butcher
6dc7c9c5e1
Adds checks to 1.3->2.0 API migration script
2016-06-23 11:11:30 +01:00
Simon Butcher
02c4a38013
Corrects missing dependency for MBEDTLS_CIPHER_MODE_CBC in some tests
2016-06-23 02:41:31 +01:00
Jussi Kivilinna
4b541bec0f
Fix unused variable in AES selftest when CBC and CFB disabled ( #393 )
...
This commit fixes following warning:
> CC: aes.c
> aes.c: In function 'mbedtls_aes_self_test':
> aes.c:1225:19: error: unused variable 'iv' [-Werror=unused-variable]
> unsigned char iv[16];
> ^
> cc1: all warnings being treated as errors
2016-06-22 16:48:16 +01:00
Janos Follath
efc665f80f
Fix mbedtls_ssl_set_hostname documentation
2016-06-22 00:21:32 +01:00
Simon Butcher
dd9895d810
Fix config.pl to return successful exitcode for full and realfull
2016-06-21 15:12:00 +01:00
Janos Follath
c8dd1148f0
Merge branch 'development' into development-restricted
2016-06-21 15:07:00 +01:00
Simon Butcher
45103f3e15
Changes multiline string (for CMake >3.0) to list (for CMake 2.8)
2016-06-21 14:47:11 +01:00
Janos Follath
1b8571cd25
Merge branch 'development' into development-restricted
2016-06-21 13:51:17 +01:00
Simon Butcher
1ceab6e43a
Adds a check and warning for the null entropy option
...
If the option MBEDTLS_TEST_NULL_ENTROPY is enabled, the cmake generated
makefile will generate an error unless a UNSAFE_BUILD switch is also enabled.
Equally, a similar warning will always be generated if the Makefile is built,
and another warning is generated on every compilation of entropy.c.
This is to ensure the user is aware of what they're doing when they enable the
null entropy option.
2016-06-21 10:14:00 +01:00
Simon Butcher
4ae869139a
Adds 'get' command to scripts/config.pl to retrieve config state
...
Adds 'get' command to indicate if the option is enabled in the given
configuration file, and to returns it's value if one has been set.
2016-06-21 10:09:25 +01:00
Aaron Jones
d96e526093
ssl.h: tidy up the documentation comments ( #505 )
...
ssl.h: Tidy up and correct documentation errors.
2016-06-17 15:40:41 +01:00
Janos Follath
15ab7ed0f3
Merge branch 'development' into development-restricted
...
Conflicts:
programs/pkey/rsa_decrypt.c
programs/pkey/rsa_encrypt.c
programs/test/selftest.c
2016-06-14 09:20:46 +01:00
Simon Butcher
124646e4b5
Updates version feature list for NV Seed
2016-06-12 11:56:03 +01:00
Simon Butcher
4e6248fa15
Merge branch 'null-entropy' into development
2016-06-12 00:44:26 +01:00
Simon Butcher
4157b6004d
Renames null entropy source function for clarity
2016-06-12 00:31:33 +01:00
Simon Butcher
ab5df40054
Rename the 'no entropy' feature to MBEDTLS_TEST_NULL_ENTROPY
...
Following review and for clarity, changed the name of the feature to 'null
entropy'.
2016-06-11 02:31:21 +01:00
Simon Butcher
72ff973d22
Revert accidental changes to file mode of rsa.c
2016-06-10 19:45:20 +01:00
Simon Butcher
30b5f978eb
Removes target_config.h file from default and thread configs
...
target_config.h is no longer needed for target/platform configurations so
this change removes it from the default and platform configurations for mbed
builds.
2016-06-10 19:42:15 +01:00
Paul Bakker
bd43f6c009
Fix dependency on MBEDTLS_ENTROPY_SHA512_ACCUMULATOR in test suite
2016-06-10 19:42:15 +01:00
Paul Bakker
71a597a2ba
Update documentation for MBEDTLS_ENTROPY_NV_SEED
2016-06-10 19:42:15 +01:00
Paul Bakker
5a0392a5c0
Fix dependency guard for test
2016-06-10 19:42:15 +01:00
Paul Bakker
b3dc822846
Properly gate NV_SEED additions in test suite
2016-06-10 19:42:15 +01:00
Paul Bakker
bddf9ab8ff
Update features file
2016-06-10 19:42:15 +01:00
Paul Bakker
1779026037
Add test cases for NV seed functionality
...
A standard 'test' that writes a seed file is added so that regular tests
still can succeed. This is in lieu of a 'SUITE_PRE_CODE' kind of
arrangement where a suite can run code before (and after) all other code
runs.
A test is added that checks if we can read and write the standard NV
seed file
A test is added that actually checks if the entropy and seed file values
that are the result of just using the NV seed are the same as the manual
calculation.
2016-06-10 19:42:15 +01:00
Paul Bakker
fc9c7c8bf4
Initial entropy run should be context specific
...
Otherwise test influence each other.
Is a change to the context but only if the NV seed feature is enabled
2016-06-10 19:42:15 +01:00
Paul Bakker
66fdf34e81
Add MBEDTLS_FS_IO guard on default NV seed defines in platform.h
...
The default implementation won't work without MBEDTLS_FS_IO, so
leave undefined otherwise.
2016-06-10 19:42:15 +01:00
Paul Bakker
d5c9f6d226
Automatically update NV seed on initial entropy run
...
Update the NV entropy seed before generating any entropy for outside
use. The reason this is triggered here and not in mbedtls_entropy_init(),
is that not all entropy sources mights have been added at that time.
2016-06-10 19:42:14 +01:00
Paul Bakker
9988d6bbd9
Introduce mbedtls_nv_seed_poll() entropy polling function
2016-06-10 19:42:14 +01:00
Paul Bakker
cf0a9f96c5
Introduce platform-layer functions for reading/writing seed from NV
...
Introduces mbedtls_nv_seed_read() and mbedtls_nv_seed_write().
The platform-layer functions are only available when
MBEDTLS_ENTROPY_NV_SEED is enabled.
2016-06-10 19:42:14 +01:00
Janos Follath
d2e7ff746d
Fix test message for entropy safety switch.
2016-06-09 14:12:02 +01:00
Simon Butcher
8dc4fef789
Merge branch 'development'
2016-06-09 14:11:07 +01:00
Janos Follath
06c54000f3
Add test for the entropy safety switch feature.
2016-06-09 13:57:40 +01:00
Janos Follath
51bcd9355b
Update version features.
2016-06-09 13:55:37 +01:00
Janos Follath
f93b8bc2e0
Add requirements for the entropy safety switch in documentation.
2016-06-09 13:54:15 +01:00
Simon Butcher
c4205ae7f0
Removes target_config.h file from default and thread configs
...
target_config.h is no longer needed for target/platform configurations so
this change removes it from the default and platform configurations for mbed
builds.
2016-06-09 13:41:29 +01:00