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

Revisions of mbed-os.lib

Revision Date Message Actions
18:1adbf6a7e14b 2017-01-16 Merge pull request #39 from adbridge/master File  Diff  Annotate
17:ad14d9c16003 2017-01-04 Merge pull request #37 from adbridge/master File  Diff  Annotate
16:d133fd43c80f 2016-12-21 Merge pull request #36 from adbridge/master File  Diff  Annotate
15:2d5fe4c1e734 2016-12-16 Update mbed-os.lib to point to the updated mbed-os-5.3.0 version of File  Diff  Annotate
14:56096ea758f8 2016-12-15 Merge pull request #35 from ARMmbed/mbed-os-5.3.0 File  Diff  Annotate
13:88cd53840163 2016-10-28 Updating mbed-os to mbed-os-5.2.1 File  Diff  Annotate
12:34d26a941ec4 2016-10-24 Updating mbed-os to mbed-os-5.2.0 File  Diff  Annotate
11:4311694bfcc4 2016-10-21 Updating mbed-os to mbed-os-5.2.0-rc4 File  Diff  Annotate
10:19f2e585cec5 2016-10-05 Updating mbed-os to mbed-os-5.1.5 File  Diff  Annotate
9:13c4f6a1845a 2016-09-16 Updating mbed-os to mbed-os-5.1.4 File  Diff  Annotate
8:c68a6dc8d494 2016-08-20 Updating mbed-os to mbed-os-5.1.2 File  Diff  Annotate
7:6c133c8ef3cd 2016-08-19 Updating mbed-os to mbed-os-5.1.1 File  Diff  Annotate
6:ea6231b1b036 2016-08-05 Updating mbed-os to mbed-os-5.1.0 File  Diff  Annotate
4:60db25905dc9 2016-08-03 Updating mbed-os to mbed-os-5.1.0-rc5 File  Diff  Annotate
3:c8cd90d64460 2016-07-30 Updating mbed-os to mbed-os-5.1.0-rc4 File  Diff  Annotate
1:7401788d4d21 2016-07-28 Update example home repo at https://github.com/ARMmbed/mbed-os-example-tls File  Diff  Annotate
0:faef56ba465f 2016-07-27 Update example home repo at https://github.com/ARMmbed/mbed-os-example-tls File  Diff  Annotate