Questions tagged [mbedtls]

mbed TLS (formerly known as PolarSSL) makes it easier for developers to include cryptographic and SSL/TLS capabilities in their (embedded) products, facilitating this functionality with a minimal coding footprint.

mbed TLS (formerly known as PolarSSL) makes it easier for developers to include cryptographic and SSL/TLS capabilities in their (embedded) products, with a minimal coding footprint.

160 questions
2
votes
1 answer

Resume two TLS sessions with Mbed TLS

I'm updating an IOT device that's been up and running for several years. TLS is performed using mbedTLS 2.9.0, and the application currently serializes all tasks which require TLS so that only one secured connection is established at a time. The…
Fred W
  • 49
  • 2
2
votes
0 answers

Is there a parallel implementation of Poly1305?

In Poly1305's features (https://cr.yp.to/mac.html) it is listed that: (Parallelizability and incrementality) Poly1305-AES can take advantage of additional hardware to reduce the latency for long messages, and can be recomputed at low cost for…
arkountos
  • 23
  • 1
  • 6
2
votes
1 answer

How to install package MbedTLS on julia-1.6.2?

I unzipped and copied to julia-1.6.2 to /opt/julia/ [root@srvr0 ~]# cp -a /root/Downloads/julia-1.6.2 /opt/julia/ Content of /etc/profile.d/julia.sh: export JULIA_HOME=/opt/julia/julia-1.6.2 export…
AVA
  • 2,474
  • 2
  • 26
  • 41
2
votes
1 answer

mbedtls DTLS server running on 64-bit desktop but not on embedded system

I am trying to replace the UDP communication with a DTLS server on my application. I have a DTLS server running on my computer (linux mint) using mbedtls. The application is reading/writing without crashing. (Though closing the connection is not yet…
KAMBLY
  • 51
  • 1
  • 4
2
votes
2 answers

trying to build mbedtls on windows using cmake

I am using cmake to try to build mbedtls. I got the .zip from github, un-zipped it, then I "cd"ed into the directory of mbedtls. I get errors like these, no matter what subdirectory/directory im in i can not build it successfully. the cmake…
noah
  • 107
  • 10
2
votes
2 answers

How to build mbedtls for arm gcc

I want to use mbedtls for my stm32 projects, but I have some problems with building. I have to build mbedtls with arm-none-gcc compiler, right? My command is :(in build…
2
votes
1 answer

How to properly use the aes cbc api from mbedtls

My current approach doesn't even produce the correct encrypted data as checked against golang's aes implementation. It also doesn't decrypt back to the original plaintext, but that's expected if the encryption step isn't working correctly. My best…
Dalton Sandbothe
  • 501
  • 2
  • 7
  • 16
2
votes
1 answer

Use mbedTLS to pull public certificate chain from a server and store as a string

Hello and thanks in advance. I am new to mbedtls. The following would be pretty simple using openssl, however I do not know where to start here. I need to capture the certificate chain from a server like https://example.com as a string similar to…
prelag
  • 43
  • 6
2
votes
0 answers

How to convert a given public key in a byte array to a mbedtls_ecdsa_publickey struct to verify an ECDSA-signature?

I am trying to convert a given publickey in a byte array to use it to verify a signature with mbedtls in my microcontroller program. This is what I tried. It compiles and runs, but I get the parsing does not work and i end up with the error output. …
Luca_Ro
  • 21
  • 2
2
votes
1 answer

ECDiffieHellman - mbedTLS vs C#

I need to use elliptic curve Diffie Hellman between a ARM cortex M3 and the PC. On the ARM, I use mbed TLS. On the PC side I want to us C# and the ECDiffieHellman(Cng) class. I can do the ECDH on ARM vs ARM, but I do have trouble when I try to…
Traummaennlein
  • 474
  • 5
  • 12
2
votes
1 answer

Convert code using openssl to use mbedtls

I am trying to convert some C code written to run on a Mac to an embedded device that does not have any encryption libraries. The code for the Mac is using libcrypto. I tried building libcrypto from openssl sources for the embedded device but I get…
Jim Rhodes
  • 5,021
  • 4
  • 25
  • 38
2
votes
1 answer

Cannot connect to https server using mbedtls example client

EDIT: I tested with a static IP on both the board and my computer with a python SSL server and it works as expected, leading me to believe that the DHCP is the problem. If anyone has a lead on what may be occuring it would be greatly appreciated. I…
MDL
  • 107
  • 1
  • 10
2
votes
0 answers

DTLS: OpenSSL and mbedTLS keying material

I have a client which uses mbedTLS and server which uses OpenSSL libraries. After performing DTLS handshake I'm trying to get keying material with next function calls mbedTLS: mbedtls_ssl_export_srtp_keys OpenSSL: SSL_export_keying_material But…
2
votes
0 answers

lwIP HTTPD HTTPS support (with mbed TLS)

I need to develop secure web application for embedded device. I'm already using lwIP, it's internal HTTPD and mbed TLS in the device and I'm standing before question of rewriting lwIP's httpd.c for HTTPS support or using different HTTP server which…
wildfireheart
  • 373
  • 2
  • 4
  • 13
2
votes
1 answer

CMSIS FreeRTOS dynamic allocation

I'm working on an embedded system that has CMSIS FreeRtos with heap4 as memory management scheme. Now I'm trying to port the mbedTls to my system and I must provide dynamic allocation functions like alloc and free. mbedTLS require two function to…
Federico
  • 1,117
  • 6
  • 20
  • 37
1
2
3
10 11