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
0
votes
1 answer

Chrome Reject certificate generated by MBEDTLS

I am using mbedtls 2.16.3 . I use mbedtls library to create two level certificate and use the certificate to set up https communication. The root certification(also be CA) is a self-signed certificate using ECC secp256r1. The device certification is…
0
votes
1 answer

FreeRTOS+TCP and mbedTLS+TCP

I have program which performs successful transfer of data between client(washing machine) and server(HawkBit) by using FreeRTOS+TCP in which we have sockets from FreeRTOS only but now I want to implement TLS over it for which I am using mbedTLS in…
0
votes
2 answers

MbedTLS AES 128 encrypt and decrypt in Java

I am trying to encrypt some text on microprocessor running FreeRTOS with mbedTLS. I am using AES 128 CBC with PKCS7 padding. If I try to encrypt in mbedTLS and decrypt in Java when text is shorter than 16 characters it works. I can decrypt it in…
WebScript
  • 67
  • 6
0
votes
1 answer

HTTPS connection with no client certificate using mbedTLS

I need (because I was told to) to connect to an endpoint that ends up at gooogleapis.com without having a client certificate. RFC5246 says this is possible: If no suitable certificate is available, the client MUST send a certificate message…
0
votes
1 answer

Error messages from Mongoose web server with mbedtls TLS

I am building an HTTP(S) server on Intel SGX, using mbedtls as my TLS library. I can serve content as expected using HTTP, but when switching over to TLS/SSL using mbedtls I am getting some more complex issues and the error messages are difficult to…
larslars
  • 168
  • 1
  • 14
0
votes
1 answer

Integration of library embedTLS with LwIP 2.1.0 error on undefined reference to '_gettimeofday'

I've tried integrating library mbedTLS with LwIP 2.1.0. I've added the following to my lwipopts.h file #ifndef LWIP_ALTCP #define LWIP_ALTCP 1 #endif #ifndef LWIP_ALTCP_TLS #define LWIP_ALTCP_TLS 1 #endif I've added the library to my project like…
Müller
  • 313
  • 5
  • 18
0
votes
1 answer

MBED TLS Symetric Key Wrap

I'm trying to use MBED TLS cryptography functions to unwrap a key which has been encrypted using AES-128 key wrapping using a symmetric key, which I have. I'm new to encryption and my understanding is that key wrapping/unwrapping is different to…
Jim
  • 21
  • 1
0
votes
0 answers

How Can I using mbedTLS with lwip without RTOS?

I want to use mbedtls with lwip in STM32F4 . And In the Cubemx, When I want to choose the mbedtls with lwip, I can not select middleware without FreeRTOS. But I dont want to use FreeRTOS. When I generate the code and delete the FreeRTOS file, folder…
NetworkStudent
  • 401
  • 2
  • 13
0
votes
0 answers

Use Mbedtls-SGX on Windows

I have an application which has an Intel SGX Enclave. I want, from within the enclave, to create a https connection to a server (so that the session keys and other secrets are hidden in the enclave). I saw the mbedtls-sgx github page…
Anca Faur
  • 1
  • 2
0
votes
0 answers

How can i properly generate a 1024 bit rsa key pair with a XMC4500?

I am trying to generate a RSA 1024 bit key pair with an infineon XMC4500 f100k1024. At the moment, I generate the key pair externally with openssl. Then, to sign and verify data, I use the mbedtls package with no problem. Generating this RSA key…
0
votes
1 answer

RSA signature verification failing with libtomcrypt

I was using libtomcrypt for a project, in particular hashing and signing with RSA some data. Because of memory requirements I wanted to switch to mbedtls. However I noticed an issue when trying to verify with mbedtls a signature generated by…
Damien
  • 164
  • 11
0
votes
1 answer

is there a Error look up function FOR MBEDTLS?

I am currently using mbedtls for a project. I want to know if there is a error look up function at all that will take a error code and give me back a error message of some kind?
0
votes
0 answers

How to format a string for this method?

I have problems with trying to get this method to work, I am trying to use mbedtls with psk. Turns out the example they have is very hard to understand for a C novice like myself. /* * Parse a string of pairs name1,key1[,name2,key2[,...]] * into a…
0
votes
1 answer

SSL Handshake with Azure Iot Hub Fails Because of Bad Certificate

I'm trying to port the azure-iot-sdk-c to an stm32f767zi board and have been having a modest amount of success. However now that the program is at the point where it is attempting an SSL handshake with the server mbedtls is failing to verify the…
0
votes
1 answer

Performance of mbedTLS sha256 realistic?

At the moment I test the sha256 performance of mbedTLS on a stm32f7 nucleo board. I measure the elapsed cycles of the stm32 board with the cycle counter register. The formula of measurement looks something like this: DWT->CYCCNT = 0; uint32_t…
Habebit
  • 957
  • 6
  • 23