Git Product home page Git Product logo

mbednanotls's Introduction

MbedNanoTLS

Arduino Mbed OS Nano boards provide a version of Mbed TLS within their board library.

However, this version is old and slow. A much better performance (and likely less vulnerabilities) can be achieved by using the latest version of Mbed OS. However, simply trying to build and use the latest version will not work since its symbols clash with the ones provided by the board library. Additionally Mbed TLS achieves best performance when built with -O3 rather than -Os optimizations which can be tricky to accomplish in environments such as Arduino IDE.

This library solves these problems. It packages the latest release (currently 3.6.0 LTS) of Mbed TLS, makes it build with -O3 optimizations regardless of an IDE/build system used and makes its symbols not clash with the system ones.

Usage

#include "MbedNanoTLS.h"

Then use Mbed TLS according to its documentation. MbedNanoTLS.h includes some common Mbed TLS headers. If you need additional ones simply do:

#include <mbedtls/header_name.h>

Integration

Arduino IDE

MbedNanoTLS library is available from the Library Manager.

Alternatively you can download MbedNanoTLS-x.y.z.tar.gz from the desired release of this library on Releases page and unpack it into your Arduino libraries folder.

PlatformIO

Use either:

lib_deps =
    gershnik/[email protected]

or

lib_deps =
    https://github.com/gershnik/MbedNanoTLS#vX.Y.Z

to your platformio.ini file where X.Y.Z is the desired version.

Note that the second form allows you to reference unreleased code at specific branches or commits, if desired.

How it is made

You can see the details on how this library is produced from Mbed TLS sources in .tools/prepare.py script. If desired, you can also re-create this library using it.

License

Copyright 2024 Eugene Gershnik

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

mbednanotls's People

Contributors

gershnik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.