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

Changes

RevisionDateWhoCommit message
83:9f7b1df6f95a 2019-11-18 mbed_official Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master default tip
82:5649fd9389c0 2019-02-25 mbed_official Merge pull request #235 from adbridge/master
81:4c9d653d9f70 2019-02-13 mbed_official Merge pull request #234 from adbridge/master
80:602bf8e15b6e 2019-01-17 mbed_official Merge pull request #231 from cmonr/master
79:428705ae7b11 2019-01-04 mbed_official Merge pull request #225 from adbridge/master
78:adb1f477ed77 2018-12-28 mbed_official Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob
77:be690482027b 2018-11-21 mbed_official Merge pull request #215 from cmonr/master
76:1b9b12788039 2018-11-06 mbed_official Merge pull request #212 from adbridge/master
75:cc01992ff516 2018-10-31 mbed_official Merge pull request #199 from RonEld/set_NULL_as_platform_context
74:e9f305e5f8c2 2018-10-23 mbed_official Merge pull request #207 from cmonr/master
73:5dac47333167 2018-10-15 mbed_official Merge pull request #204 from cmonr/master
72:6973f9247848 2018-10-08 mbed_official Merge pull request #126 from andresag01/line-endings
71:4a0865b04f9f 2018-10-08 mbed_official Update to Mbed OS 5.10.0 (#202)
70:32f602c6b063 2018-09-10 mbed_official Merge pull request #200 from adbridge/master
69:1d4b412a384c 2018-08-27 mbed_official Merge pull request #197 from 0xc0170/master
68:26a99e4a2e30 2018-08-15 mbed_official Merge pull request #195 from cmonr/master
67:b2bb796b055b 2018-07-31 mbed_official Merge pull request #188 from cmonr/master
66:67be5ea0a67f 2018-07-16 mbed_official Merge pull request #182 from cmonr/master
65:ee0d85de405c 2018-07-02 mbed_official Merge pull request #180 from adbridge/master
64:19548e73e4a6 2018-06-19 mbed_official Merge pull request #177 from adbridge/master
63:6a6036ec1b85 2018-06-15 mbed_official Merge pull request #176 from k-stachowiak/update-mbed-os-5.9.0
62:c7a85faf3da5 2018-06-07 mbed_official Merge pull request #175 from adbridge/master
61:ca72542a305a 2018-05-21 mbed_official Merge pull request #169 from adbridge/master
60:4ca36ac89018 2018-05-10 mbed_official Merge pull request #165 from ARMmbed/feature-platform-init
59:0c156fb8a3ab 2018-05-02 mbed_official Merge pull request #166 from adbridge/master
58:a32c6d8c0d1e 2018-04-11 mbed_official Merge pull request #164 from adbridge/master
57:6e5fd2902591 2018-03-28 mbed_official Merge pull request #162 from adbridge/master
56:9445f5fe3338 2018-03-16 mbed_official Merge pull request #156 from cmonr/master
55:ea7d1462b821 2018-02-26 mbed_official Merge pull request #149 from adbridge/master
54:b2b200fcc368 2018-02-14 mbed_official Merge pull request #147 from adbridge/master
53:5bcc29701d69 2018-01-31 mbed_official Merge pull request #144 from cmonr/master
52:9f11f413ef0c 2018-01-16 mbed_official Merge pull request #143 from adbridge/master
51:fc3a5f3d13d5 2018-01-03 mbed_official Merge pull request #141 from adbridge/master
50:b2c7d51194aa 2018-01-02 mbed_official Merge pull request #140 from adbridge/master
49:3a3947eca970 2018-01-02 mbed_official Merge pull request #139 from ARMmbed/mbed-os-5.7.0-oob
48:251611fb7053 2017-12-04 mbed_official Merge pull request #132 from adbridge/master
47:f056de7e8026 2017-11-22 mbed_official Merge pull request #131 from adbridge/master
46:1a7cfec6d55f 2017-11-21 mbed_official Merge pull request #130 from adbridge/master
45:9152ca3b575e 2017-11-09 mbed_official Change Arm trademarks in the examples' source files
44:749cc8d50473 2017-11-07 mbed_official Update branding from mbed to Mbed in tls-client/README.md
43:5108a7d849dd 2017-11-07 mbed_official Merge pull request #127 from adbridge/master
42:319968fcb0fe 2017-10-24 mbed_official Merge pull request #124 from 0xc0170/master
41:4295fba7133a 2017-10-09 mbed_official Merge pull request #121 from adbridge/master
40:d06fc9bcc642 2017-10-02 mbed_official Merge pull request #120 from adbridge/master
39:e8a4b9ad37f4 2017-09-29 mbed_official Merge pull request #119 from andresag01/master
38:7fbd2a57cd19 2017-09-20 mbed_official Merge pull request #117 from andresag01/change-mbed-server-address
37:70cfd2ce5d91 2017-08-30 mbed_official Merge pull request #113 from adbridge/master
36:3cbce980f178 2017-08-17 mbed_official Merge pull request #112 from andresag01/fix-hw-accel-failure
35:1ed08216db41 2017-08-03 mbed_official Merge pull request #110 from 0xc0170/master
34:e15d148958d9 2017-07-18 mbed_official Merge pull request #108 from 0xc0170/master
33:2c0120170e7c 2017-07-11 mbed_official Merge pull request #99 from adbridge/master
32:353e1ca932c0 2017-06-22 mbed_official Merge pull request #97 from adbridge/master
31:2ccf5e80b35f 2017-06-20 mbed_official Merge pull request #96 from adbridge/master
30:61fe32ba3325 2017-06-07 mbed_official Merge pull request #89 from adbridge/master
29:896d23e2b3a6 2017-05-26 mbed_official Merge pull request #85 from adbridge/master
28:23873f5b4d75 2017-05-10 mbed_official Merge pull request #83 from adbridge/master
27:7aea5ff846ef 2017-04-27 mbed_official Merge pull request #82 from 0xc0170/master
26:2724ded6b7fa 2017-04-11 mbed_official Merge pull request #81 from adbridge/master
25:9a62fcce9836 2017-04-03 mbed_official Merge pull request #78 from 0xc0170/master
24:9c5abbb3ff9e 2017-03-17 mbed_official Merge pull request #72 from ARMmbed/oob-test-mbed-os-5.4.1