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

mbed TLS Benchmark example on mbed OS

This application performs authenticated encryption and authenticated decryption of a buffer. It serves as a tutorial for the basic authenticated encryption functions 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

plaintext message: 536f6d65207468696e67732061726520626574746572206c65667420756e7265616400
ciphertext: c57f7afb94f14c7977d785d08682a2596bd62ee9dcf216b8cccd997afee9b402f5de1739e8e6467aa363749ef39392e5c66622b01c7203ec0a3d14
decrypted: 536f6d65207468696e67732061726520626574746572206c65667420756e7265616400

DONE

Revisions of mbed-os.lib

Revision Date Message Actions
87:5d1395cd812c 2019-11-18 Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master File  Diff  Annotate
86:b2856f26f5c4 2019-02-25 Merge pull request #235 from adbridge/master File  Diff  Annotate
85:cbca510338cc 2019-02-13 Merge pull request #234 from adbridge/master File  Diff  Annotate
84:bac78ac072d2 2019-01-17 Merge pull request #231 from cmonr/master File  Diff  Annotate
83:ddecbc08b812 2019-01-04 Merge pull request #225 from adbridge/master File  Diff  Annotate
82:5eab0c15ba40 2018-12-28 Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob File  Diff  Annotate
80:d2273f47070c 2018-11-21 Merge pull request #215 from cmonr/master File  Diff  Annotate
79:04d8730f4b64 2018-11-06 Merge pull request #212 from adbridge/master File  Diff  Annotate
77:649a13fdede3 2018-10-23 Merge pull request #207 from cmonr/master File  Diff  Annotate
76:f6633cd0c011 2018-10-15 Merge pull request #204 from cmonr/master File  Diff  Annotate
74:78d80b457e5e 2018-10-08 Update to Mbed OS 5.10.0 (#202) File  Diff  Annotate
73:524a79b177f0 2018-09-10 Merge pull request #200 from adbridge/master File  Diff  Annotate
72:d6b9e50e0627 2018-08-27 Merge pull request #197 from 0xc0170/master File  Diff  Annotate
71:ea45830d7488 2018-08-15 Merge pull request #195 from cmonr/master File  Diff  Annotate
70:220c2a7bbd69 2018-07-31 Merge pull request #188 from cmonr/master File  Diff  Annotate
69:a1d44a322223 2018-07-16 Merge pull request #182 from cmonr/master File  Diff  Annotate
68:016c0b630b23 2018-07-02 Merge pull request #180 from adbridge/master File  Diff  Annotate
67:d0d2c3396ada 2018-06-19 Merge pull request #177 from adbridge/master File  Diff  Annotate
66:85121c6cb31c 2018-06-15 Merge pull request #176 from k-stachowiak/update-mbed-os-5.9.0 File  Diff  Annotate
65:a04993e8bfef 2018-06-07 Merge pull request #175 from adbridge/master File  Diff  Annotate
64:f627ee99da9b 2018-05-21 Merge pull request #169 from adbridge/master File  Diff  Annotate
63:5e7be856a68b 2018-05-10 Merge pull request #165 from ARMmbed/feature-platform-init File  Diff  Annotate
62:8ee0f0dbb6a1 2018-05-02 Merge pull request #166 from adbridge/master File  Diff  Annotate
61:718ce0401bd2 2018-04-11 Merge pull request #164 from adbridge/master File  Diff  Annotate
60:7dde35d4fcf1 2018-03-28 Merge pull request #162 from adbridge/master File  Diff  Annotate
59:0e5f068ba47b 2018-03-16 Merge pull request #156 from cmonr/master File  Diff  Annotate
58:5a037ac591dd 2018-02-26 Merge pull request #149 from adbridge/master File  Diff  Annotate
57:52b92e096b46 2018-02-14 Merge pull request #147 from adbridge/master File  Diff  Annotate
56:3c294d11fbb3 2018-01-31 Merge pull request #144 from cmonr/master File  Diff  Annotate
55:3bcca2209ca3 2018-01-16 Merge pull request #143 from adbridge/master File  Diff  Annotate
54:3eba8af9849f 2018-01-03 Merge pull request #141 from adbridge/master File  Diff  Annotate
53:c189ae443d27 2018-01-02 Merge pull request #140 from adbridge/master File  Diff  Annotate
52:b46c44858ab7 2018-01-02 Merge pull request #139 from ARMmbed/mbed-os-5.7.0-oob File  Diff  Annotate
51:239d268d3e93 2017-12-04 Merge pull request #132 from adbridge/master File  Diff  Annotate
50:bc7550832900 2017-11-22 Merge pull request #131 from adbridge/master File  Diff  Annotate
49:1cc6070bb13d 2017-11-21 Merge pull request #130 from adbridge/master File  Diff  Annotate
46:b539d85e4176 2017-11-07 Merge pull request #127 from adbridge/master File  Diff  Annotate
45:90a5bc73cd54 2017-10-24 Merge pull request #124 from 0xc0170/master File  Diff  Annotate
44:b42e711a3616 2017-10-09 Merge pull request #121 from adbridge/master File  Diff  Annotate
43:c15e116a39b8 2017-10-02 Merge pull request #120 from adbridge/master File  Diff  Annotate
42:4187968a4b64 2017-09-29 Merge pull request #119 from andresag01/master File  Diff  Annotate
41:ef3694f92ad8 2017-09-20 Initial commit. File  Diff  Annotate
40:66869f9f39d4 2017-08-30 Merge pull request #113 from adbridge/master File  Diff  Annotate
39:73b46cffafe7 2017-08-17 Merge pull request #112 from andresag01/fix-hw-accel-failure File  Diff  Annotate
38:5cb25a96b7f3 2017-08-03 Merge pull request #110 from 0xc0170/master File  Diff  Annotate
37:971586eea0f6 2017-07-18 Merge pull request #108 from 0xc0170/master File  Diff  Annotate
35:e7af1b5a1bcc 2017-07-11 Merge pull request #99 from adbridge/master File  Diff  Annotate
34:729bfbd4be0b 2017-06-22 Merge pull request #97 from adbridge/master File  Diff  Annotate
33:9d9f7c0debc2 2017-06-20 Merge pull request #96 from adbridge/master File  Diff  Annotate
32:6d3c659f54e3 2017-06-07 Merge pull request #89 from adbridge/master File  Diff  Annotate
31:de3d29975451 2017-05-26 Merge pull request #85 from adbridge/master File  Diff  Annotate
30:44d58ea346c7 2017-05-10 Merge pull request #83 from adbridge/master File  Diff  Annotate
29:013c7a29fba7 2017-04-27 Merge pull request #82 from 0xc0170/master File  Diff  Annotate
28:489acd173903 2017-04-11 Merge pull request #81 from adbridge/master File  Diff  Annotate
27:18d00290bc6f 2017-04-03 Merge pull request #78 from 0xc0170/master File  Diff  Annotate
26:ba0ce9376999 2017-03-17 Merge pull request #72 from ARMmbed/oob-test-mbed-os-5.4.1 File  Diff  Annotate
25:f4d8fa10b10a 2017-03-09 Merge pull request #64 from andresag01/oob_test_mbed-os-5.4 File  Diff  Annotate
24:1f9865768954 2017-03-01 Merge pull request #50 from adbridge/master File  Diff  Annotate
23:de6031e066d3 2017-02-15 Merge pull request #48 from 0xc0170/master File  Diff  Annotate
22:562781c902e0 2017-01-31 Merge pull request #44 from adbridge/master File  Diff  Annotate