zephyr/samples
Marcus Shawcroft 15a151a0a0 samples/mbedtls_dtls_client: Fix wild write in entropy_source
The example entropy_source implementation should write entropy to the
output buffer rather than to the context pointer which in this example
happens to be NULL.

Take the opportunity to reorganize the entropy_source to use all of
the entropy provided by a call to sys_rand32_get() rather than just
1/4 of it.

The entropy_source() callback from mbedtls is given a maximum amount
of entropy to return, rather than a minimum amount.  Hence it makes
more sense to deliver exactly one chunk (32 bits) of entropy from the
call to sys_rand32_get() per call and let the mbedtls entropy handler
worry about how much entropy we actually need to collect (ie the threshold).

Change-Id: I57ed438de5cb1223619fde0fb8039d6eca284646
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2017-02-09 14:26:58 +00:00
..
basic doc: fix .rst files canonical heading order 2017-01-20 16:06:36 -08:00
bluetooth Merge "Merge net branch into master" 2017-02-08 12:03:09 +00:00
drivers samples: spi_flash: remove an unnecessary config symbol 2017-02-04 19:45:44 +00:00
environmental_sensing doc: fix wiki board reference back to web page 2017-01-26 23:06:04 +00:00
grove doc: fix .rst files canonical heading order 2017-01-20 16:06:36 -08:00
hello_world doc: fix .rst files canonical heading order 2017-01-20 16:06:36 -08:00
ipm license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
legacy license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
logger-hook license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
net samples/mbedtls_dtls_client: Fix wild write in entropy_source 2017-02-09 14:26:58 +00:00
nfc/nfc_hello license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
philosophers samples: philosophers: adjust stack size and build by sanitycheck 2017-02-02 14:44:46 +00:00
power samples: power: Remove mention of specific versions in README 2017-02-08 06:28:25 +00:00
sensor samples: bmi160: reduce polling mode sampling frequency 2017-02-04 20:08:16 +00:00
shell license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
static_lib license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
synchronization doc: fix .rst files canonical heading order 2017-01-20 16:06:36 -08:00
testing license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
usb samples: webusb: fix type of bytes_read 2017-01-30 12:01:49 +00:00
advanced.rst doc: move documetnation context to root directory 2017-01-06 22:51:31 +00:00
kernel.rst doc: move documetnation context to root directory 2017-01-06 22:51:31 +00:00
samples.rst Bluetooth: Move Bluetooth docs to rst 2017-01-24 17:58:59 +00:00