Questions tagged [polarssl]

PolarSSL is a light-weight (embedded) open source cryptographic and SSL/TLS library written in C that is easy to understand, easy to use, easy to integrate and easy to expand.

PolarSSL is a light-weight (embedded) open source cryptographic and SSL/TLS library written in C that is easy to understand, easy to use, easy to integrate and easy to expand.

Questions tagged polarssl should be directly related to the library, its API or its application to problems. Questions about SSL/TLS in general should not be tagged polarssl.

47 questions
20
votes
1 answer

What is a good embedded TLS library? (Cyassl vs Polarssl vs Matrixssl)

I have looked around for good SSL/TLS libraries that support TLS 1.2 I also want to use this library on an embedded platform so it should be small, easy, secure and free. It should be a c/c++ library. So far i have come across Cyassl, Polarssl…
mstrdenz188
  • 293
  • 2
  • 3
  • 10
12
votes
1 answer

How calculate size of RSA cipher text using key size & clear text length?

I've some clear text which I want to encrypt using RSA_PKCS_V21 (using PolarSSL library). The problem is that I need to know size of cipher text before executing the algorithm (for dynamic memory allocation purpose). I know RSA key size & clear text…
Ehsan Khodarahmi
  • 4,390
  • 9
  • 57
  • 81
10
votes
2 answers

Wrapping a C library for Lua: how do I create nested tables of functions?

The code related to this question is here: https://github.com/jchester/lua-polarssl/tree/master/src Currently I'm trying to wrap one part of the PolarSSL library (http://polarssl.org) to give me access to SHA-512 HMACs (luacrypto does not provide…
Jacques Chester
  • 610
  • 1
  • 4
  • 12
6
votes
0 answers

Use mbedTLS as SSL library in QT

By default QT looks for OpenSSL header during compilation to enable support for encryption/SSL in code. Due to several reasons, I want to use mbedTLS in my code instead and would like QT to use that as encryption library as well. Has anyone been…
tunafish24
  • 1,819
  • 4
  • 23
  • 37
5
votes
1 answer

Encryption Difference between processor and coprocessor

i am trying to handle a problem using encryption and decryption algorithms, i used below program to test my requirements and i realised an odd problem. i am using polarssl for my encryption and decryption needs. This program works well when i…
nerd
  • 115
  • 1
  • 6
4
votes
1 answer

Polarssl Base64.c error check

I used polarssl's base64.c file for decoding some data. int base64_decode( unsigned char *dst, size_t *dlen, const unsigned char *src, size_t slen ){ size_t i, n=0; uint32_t j, x; unsigned char *p; for( i = n = j = 0; i < slen;…
nerd
  • 115
  • 1
  • 6
4
votes
1 answer

Adding an entropy source to a random number generator the right way

I am tasked with making a random number generator for an embedded system. As of now, the entropy sources am using are keypad input, and other variables such as signal strength and battery strength. I have been using PolarSSL which has an amazing…
Timmay
  • 148
  • 1
  • 2
  • 16
3
votes
1 answer

What changes are required to mbedTLS APIs to use with LWIP

I want to add TLS support to my project. I am using mbedTLS and LWIP. As I am new to both, I want to know can I directly use the mbedTLS APIs as it is with LWIP or I will need some changes. What changes will be required for like bind, connect, send…
user5629669
  • 31
  • 1
  • 3
3
votes
1 answer

ECDHE-PSK mbedTLS example?

I'm trying to figure out how to use mbedTLS (formerly PolarSSL) to perform ECDHE-PSK encryption between two peers. Unfortunately, there isn't any article/documentation whatsoever on APIs that I need to use?
tunafish24
  • 1,819
  • 4
  • 23
  • 37
3
votes
0 answers

TLS v1.2 handshake fails after client's Change cipher spec and Encrypted Handshake message

I have a PSK Server and Client example using Open SSL that work very well with one another. However, what I need to do is make my client using PolarSSL/mBedTLS talk to the server. I am experiencing handshake failure once the client sends…
3
votes
1 answer

Encryption Performance

I'm interested in understanding the performance impact of encryption on a piece of hardware, so I have written a test program to that effect (sorry for the massive code dump). It uses PolarSSl to perform encryption and decryption on a number of…
Nark
  • 310
  • 1
  • 2
  • 10
3
votes
1 answer

PolarSSL's asm code execute different result in iPad4 and simulator

I am developing an encrypt and decrypt app.I use the bignum algorithm.That is polarSSL. In Xcode simulator ,it works well and could decrypt file successfully.But when I run the same project on the real device(iPad 4),it crashed. So I debug it and I…
Onetaway
  • 55
  • 7
3
votes
3 answers

I can't decrypt the string after I encrypt the string with PolarSSL AES-CBC

I wrote a program to encrypt a string with PolarSSL AES-CBC this is my code #include #include #include #include #include int main() { char buff[2][64] = {"Who can tell me…
midCat
  • 123
  • 4
  • 13
3
votes
2 answers

rsa encryption/decryption polarssl c++

I'm using C++ library PolarSSL for RSA encryption and decryption. But I'm not able to decrypt an encrypted string unless it's an output from encryption. Following code doesn't work (it's not refactored). It encrypts text and encodes the output to…
tvazac
  • 526
  • 8
  • 21
2
votes
1 answer

mbed TLS initialization

We have ported an app which was using OpenSSL to mbel TLS. The one issue with mbel TLS is the documentation which is far from complete and leaves details to assumption or exploration and risk of how things will change in future versions. While we…
Mark
  • 3,373
  • 2
  • 21
  • 34
1
2 3 4