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

History

Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master default tip

2019-11-18, by mbed_official [Mon, 18 Nov 2019 14:00:18 +0000] rev 87

Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master

Point master branch at Mbed OS master
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #235 from adbridge/master

2019-02-25, by mbed_official [Mon, 25 Feb 2019 16:41:53 +0000] rev 86

Merge pull request #235 from adbridge/master

All the CI tests have passed.
Updating mbed-os to mbed-os-5.11.5
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #234 from adbridge/master

2019-02-13, by mbed_official [Wed, 13 Feb 2019 18:31:48 +0000] rev 85

Merge pull request #234 from adbridge/master

All the CI tests pass.
Updating mbed-os to mbed-os-5.11.4
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #231 from cmonr/master

2019-01-17, by mbed_official [Thu, 17 Jan 2019 14:30:06 +0000] rev 84

Merge pull request #231 from cmonr/master

All the CI tests passed.
Updating mbed-os to mbed-os-5.11.2
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #225 from adbridge/master

2019-01-04, by mbed_official [Fri, 04 Jan 2019 18:00:05 +0000] rev 83

Merge pull request #225 from adbridge/master

Updating mbed-os to mbed-os-5.11.1
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob

2018-12-28, by mbed_official [Fri, 28 Dec 2018 09:00:11 +0000] rev 82

Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob

Updating mbed-os to mbed-os-5.11.0
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #221 from andresag01/github-205-exit-code

2018-12-14, by mbed_official [Fri, 14 Dec 2018 14:00:06 +0000] rev 81

Merge pull request #221 from andresag01/github-205-exit-code

Fix unsuitable use of exit_code in authcrypt
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #215 from cmonr/master

2018-11-21, by mbed_official [Wed, 21 Nov 2018 09:45:05 +0000] rev 80

Merge pull request #215 from cmonr/master

Updating mbed-os to mbed-os-5.10.4
The failing tests are tracked as known issues
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #212 from adbridge/master

2018-11-06, by mbed_official [Tue, 06 Nov 2018 13:15:05 +0000] rev 79

Merge pull request #212 from adbridge/master

Updating mbed-os to mbed-os-5.10.3

Only fails on known issues that are being tracked
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls


Merge pull request #199 from RonEld/set_NULL_as_platform_context

2018-10-31, by mbed_official [Wed, 31 Oct 2018 16:00:05 +0000] rev 78

Merge pull request #199 from RonEld/set_NULL_as_platform_context

Change mbedtls_platform_context parameter to NULL
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls