Hello world example of using the hashing functions of mbed TLS. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-tls

SHA-256 Hash example on mbed OS

This application performs hashing of a buffer with SHA-256 using various APIs. It serves as a tutorial for the basic hashing APIs of mbed TLS.

Getting started

Building with mbed CLI

If you'd like to use mbed CLI to build this, then you should set up your environment if you have not done so already. For instructions, refer to the main readme. The instructions on this page relate to using the developer.mbed.org Online Compiler

Import the program in to the Online Compiler, select your board from the drop down in the top right hand corner and then compile the application. Once it has built, you can drag and drop the binary onto your device.

Monitoring the application

The output in the terminal window should be similar to this:

terminal output

Method 1: 315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3
Method 2: 315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3
Method 3: 315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3
Method 4: 315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3

DONE

History

Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master default tip

2019-11-18, by mbed_official [Mon, 18 Nov 2019 14:00:38 +0000] rev 83

Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master

Point master branch at Mbed OS master
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #235 from adbridge/master

2019-02-25, by mbed_official [Mon, 25 Feb 2019 16:42:15 +0000] rev 82

Merge pull request #235 from adbridge/master

All the CI tests have passed.
Updating mbed-os to mbed-os-5.11.5
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #234 from adbridge/master

2019-02-13, by mbed_official [Wed, 13 Feb 2019 18:32:12 +0000] rev 81

Merge pull request #234 from adbridge/master

All the CI tests pass.
Updating mbed-os to mbed-os-5.11.4
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #231 from cmonr/master

2019-01-17, by mbed_official [Thu, 17 Jan 2019 14:30:14 +0000] rev 80

Merge pull request #231 from cmonr/master

All the CI tests passed.
Updating mbed-os to mbed-os-5.11.2
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #225 from adbridge/master

2019-01-04, by mbed_official [Fri, 04 Jan 2019 18:00:13 +0000] rev 79

Merge pull request #225 from adbridge/master

Updating mbed-os to mbed-os-5.11.1
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob

2018-12-28, by mbed_official [Fri, 28 Dec 2018 09:00:19 +0000] rev 78

Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob

Updating mbed-os to mbed-os-5.11.0
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #215 from cmonr/master

2018-11-21, by mbed_official [Wed, 21 Nov 2018 09:45:13 +0000] rev 77

Merge pull request #215 from cmonr/master

Updating mbed-os to mbed-os-5.10.4
The failing tests are tracked as known issues
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #212 from adbridge/master

2018-11-06, by mbed_official [Tue, 06 Nov 2018 13:15:14 +0000] rev 76

Merge pull request #212 from adbridge/master

Updating mbed-os to mbed-os-5.10.3

Only fails on known issues that are being tracked
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #199 from RonEld/set_NULL_as_platform_context

2018-10-31, by mbed_official [Wed, 31 Oct 2018 16:00:13 +0000] rev 75

Merge pull request #199 from RonEld/set_NULL_as_platform_context

Change mbedtls_platform_context parameter to NULL
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #207 from cmonr/master

2018-10-23, by mbed_official [Tue, 23 Oct 2018 09:45:14 +0100] rev 74

Merge pull request #207 from cmonr/master

Updating mbed-os to mbed-os-5.10.2

Merging with known issues:
* #138 (Memory allocation failure in benchmark example IAR + KW24D)
* #208 (Benchmark example times out on UBLOX EVK ODIN W2, on GCC_ARM)
* #209 (No network interface found in the CI for UBLOX EVK ODIN W2)
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls