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
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
20:6b9e8a8cf459 2017-01-16 Merge pull request #39 from adbridge/master File  Diff  Annotate
18:18e459e173e7 2017-01-04 Merge pull request #37 from adbridge/master File  Diff  Annotate
17:ff23919e11fc 2016-12-21 Merge pull request #36 from adbridge/master File  Diff  Annotate
16:954f92c52baa 2016-12-16 Update mbed-os.lib to point to the updated mbed-os-5.3.0 version of File  Diff  Annotate
15:ffa26ec73635 2016-12-15 Merge pull request #35 from ARMmbed/mbed-os-5.3.0 File  Diff  Annotate
14:4e42311c3a07 2016-10-28 Updating mbed-os to mbed-os-5.2.1 File  Diff  Annotate
13:d9aad57d02ce 2016-10-24 Updating mbed-os to mbed-os-5.2.0 File  Diff  Annotate
11:c6378473c2b1 2016-10-21 Updating mbed-os to mbed-os-5.2.0-rc4 File  Diff  Annotate
10:ab56c7bb895c 2016-10-05 Updating mbed-os to mbed-os-5.1.5 File  Diff  Annotate
9:a56f1794ddac 2016-09-16 Updating mbed-os to mbed-os-5.1.4 File  Diff  Annotate
8:0e2602b96d56 2016-08-20 Updating mbed-os to mbed-os-5.1.2 File  Diff  Annotate
7:2b44ac84f4e1 2016-08-19 Updating mbed-os to mbed-os-5.1.1 File  Diff  Annotate
6:c8bf05e5f4b3 2016-08-05 Updating mbed-os to mbed-os-5.1.0 File  Diff  Annotate
4:25b28db2388e 2016-08-03 Updating mbed-os to mbed-os-5.1.0-rc5 File  Diff  Annotate
3:3877b02e2921 2016-07-30 Updating mbed-os to mbed-os-5.1.0-rc4 File  Diff  Annotate
1:ab2c99baf287 2016-07-28 Update example home repo at https://github.com/ARMmbed/mbed-os-example-tls File  Diff  Annotate
0:9a918c8d34dc 2016-07-27 Update example home repo at https://github.com/ARMmbed/mbed-os-example-tls File  Diff  Annotate