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

Changes

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