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.

50 questions
1
vote
1 answer

Signing and Verifying rsa signature in polarssl c

I am working on using RSA encryption in an embedded system. for this i'll be using polarssl code. I had got the encryption working on 128 bit but i am having trouble with the signature part. When i run the code, i get a padding error on the verify…
Timmay
  • 158
  • 1
  • 2
  • 16
1
vote
1 answer

How to create configure script for project?

I would like to build PolarSSL using ./configure --host=i686-w64-mingw32 but there is no configure script. I have read about creating one using Autoconf, but I did not have luck with it. To clarify, --host has been working for me because it sets…
Zombo
  • 1
  • 62
  • 391
  • 407
0
votes
2 answers

Determine library version?

I compiled a program with a static library libpolarssl.a I would like to create a README with the library version. Is there a programmatic way to get the version of this library?
Zombo
  • 1
  • 62
  • 391
  • 407
0
votes
1 answer

Polars Dataframe change null to np.nan in Int row when use .to_numpy()

In polars, we can use .to_numpy() to change a polars.DataFrame into numpy.ndarray. But if there are None value, polars will change them into null, when use to_numpy(), null value will be change to np.NaN, thus change int array into float…
Rolnan
  • 23
  • 5
0
votes
1 answer

Construct date column from year, month and day in Polars dataframe

Consider the following Polars dataframe: df = pl.DataFrame({ 'date': ['2022-01-01', '2022-02-01', '2022-03-01'] }) df.with_column(pl.col('date').str.strptime(pl.Date, fmt='%Y-%m').cast(pl.Datetime)).alias('year-month') Currently the dataframe…
Vanessa
  • 89
  • 6
0
votes
1 answer

Is it possible to include PolarSSL and OpenSSL in the same project?

I have a software which include paho.mqtt.c with openSSL. I want to include libcurl in it, which was built with polarSSL(newly mbedTLS). When I include polarSSL to the project, i get a lot of Name clash: build/MQTTAsync.o: In function…
Damezumari
  • 17
  • 6
0
votes
0 answers

AES decryption failing

I'm trying to perform AES encryption/decryption operation on OpenSSL private.pem file. I'm using polarssl library from here for this operation. I read private.pem using the following code, unsigned char * buffer = 0; long length; FILE * fp = fopen…
perplex
  • 119
  • 2
  • 8
0
votes
0 answers

How to use mpi_read_binary() function?

I'm trying to do an RSA public key computation using the Polarssl RSA library. I get the source code of the library from here. I'm having issues while trying to use a function name mpi_read_binay(), defined in here. I'm not familiar with mpi…
perplex
  • 119
  • 2
  • 8
0
votes
1 answer

What is size (in bytes) of Mbed TLS rsa_context?

I use MBED-TLS on STM32F103 device. STM 32F103 device has little SRAM memory (20 Kbytes). I would like to calculate the ram used by mbedtls_rsa_context How to do this? Is it : sizeof(mbedtls_rsa_context) + 13 * sizeof(mbedtls_mpi ) +…
LeMoussel
  • 5,290
  • 12
  • 69
  • 122
0
votes
3 answers

how to encrypt a string in aes waywith mbedtls?

We all know that mbedtls library is a very lightweight c library. I want to use the library to encrypt a string. So I have a function like this: aes_encrypt.h: #ifndef AES_ENCRYPT_H #define AES_ENCRYPT_H #define BOOL int #define TRUE 1 #define…
Andy
  • 161
  • 1
  • 3
  • 9
0
votes
1 answer

PolarSSl bignum.c will cause crash in Android 5.0 and above while using JNI

I use PolorSSL in my ndk project. However, when I run mpi_self_test(), it causes crash in Android 5.0 and above. int mpi_self_test( int verbose ) { int ret, i; mpi A, E, N, X, Y, U, V; mpi_init( &A ); mpi_init( &E ); mpi_init( &N ); mpi_init( &X…
Zijian
  • 207
  • 1
  • 9
0
votes
1 answer

How to pass the public key in .pem file to the polarssl rsa_context

I have a rsa 2048 bit public key in .pem file and I used this command 'openssl rsa -inform PEM -in rsa_public_key.pem -pubin -text' to get the module and the exponent. However I don't know how to pass it to the polarssl function with rsa_context…
Zijian
  • 207
  • 1
  • 9
0
votes
1 answer

How to read client certificate in polarssl?

How to read client certificate from server side using mbedtls(polarssl)? I had a server that was coded using mbedtls(polarssl). I want to read the client certificate and fetch some information from that certificate. Can anyone know what function…
0
votes
1 answer

error: aes_setkey was not declared in this scope

I am attempting to compile the mbedtls for the mbed LPC1768 microcontroller using the gcc4mbed offline compiler. I would like to get a basic AESCBC encrypt and decrypt example to learn from; I am not sure if I am missing an include or if I didn't…
dottedquad
  • 1,371
  • 6
  • 24
  • 55
0
votes
1 answer

Unable to get correct output from AES-128-GCM

The following test code should theoretically give me the result from the NIST test suite of 58e2fccefa7e3061367f1d57a4e7455a , however a hexdump of the output yields 9eeaed13b5f591104e2cda197fb99eeaed13b5f591104e2cda197fb9 instead ? #include…
Little Code
  • 1,315
  • 2
  • 16
  • 37