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
2
votes
0 answers

How to decode X509 OID data in mbedTLS?

I am debugging a TLS handshake between a client and a server. Both certificates have been signed by the same CA via openssl. The process fails at this function in mbedtls: /* * Compare two X.509 Names (aka rdnSequence). * * See RFC 5280 section…
n0p
  • 3,399
  • 2
  • 29
  • 50
2
votes
1 answer

Polarssl AES counter mode example

I am looking for an example for Polarssl AES counter mode. Couldn't find it anywhere. Documentation is difficult to understand for a beginner like me. It is defined in polarssl as int aes_crypt_ctr (aes_context *ctx, size_t length, size_t…
user567879
  • 5,139
  • 20
  • 71
  • 105
2
votes
2 answers

Files for running aes only from Polarssl

I am trying to use only aes in my program. I have copied the files config.h aes.h havege.h to the folder polarssl. But when I run the program #include #include #include #include "polarssl/aes.h" #include…
user567879
  • 5,139
  • 20
  • 71
  • 105
2
votes
2 answers

test.c:(.text+0x36): undefined reference to `md5_file'

I installed polarssl: make sudo make install tried to compile very simple file, named test.c: #include #include "polarssl/md5.h" int main(int argc, char * argv[]) { int i; for (i=1;i<1;i++) { char res[16]; if…
yak
  • 3,770
  • 19
  • 60
  • 111
1
vote
1 answer

rust polars convert string column to datetime

I'm trying to learn rust and using polars. I've a simple CSV file names,pdate,orders alice,2023-02-12,2 alice,2023-02-18,1 alice,2023-02-22,6 bob,2022-12-10,1 bob,2022-12-14,1 bob,2022-12-30,4 I read it in using let mut df =…
broccoli
  • 4,738
  • 10
  • 42
  • 54
1
vote
1 answer

Why is mbedTLS ECDSA signature dependend on hashing algorithm?

I am currently working on signing a hashed message using mbedTLS (formerly polarSSL) library. I am currently stuck with using the obvious function: int mbedtls_ecdsa_write_signature( mbedtls_ecdsa_context *ctx, mbedtls_md_type_t md_alg, …
ameeuw
  • 31
  • 6
1
vote
0 answers

STM32F4 HW_CRYPTO lower performance

I use FreeRTOS, LWiP, PolarSSL with STM32F417, 1MB external RAM. When I use code with USE_STM32F4XX_HW_CRYPTO defined it works but the performance are lower or same like without HW acceleration. Why?
Hw-dev Cz
  • 19
  • 4
1
vote
1 answer

Create TLS connection using mbed TLS without TCP in iOS

The project I am working on involves connecting to a MFI (Made for iPhone) device using EAF (External Accessory Framework) and passing data back and forth via a USB cable. I want to use TLS to encrypt the traffic but I am having trouble getting it…
Brian Kalski
  • 897
  • 9
  • 35
1
vote
1 answer

Limit record size in OpenSSL

I need to implement TLS on an embedded device with an OpenSSL client running on a normal computer. The data transfers are limited to less than 1 kB at a time. I have been looking at mbedtls and it is possible to limit the record buffer to 2 kB to…
John
  • 791
  • 1
  • 6
  • 22
1
vote
1 answer

PolarSSL PKI encrypt/sign

I need to encrypt data with asymmetric key. Not sure whether PolarSSL (v1.2) has common API for this. The key in certificate can be RSA or DHM (or EC) and I expect to have universal API like "init/encrypt/decrypt/free" without separate calls to…
i486
  • 6,491
  • 4
  • 24
  • 41
1
vote
0 answers

How do I change a group generator within Polar SSL?

How do I properly change a group's generator in Polar SSL? Do I just need to copy the new generator into the group, like: ecp_group group; ecp_group_init(&group); ecp_use_known_dp(&group, POLARSSL_ECP_DP_SECP256R1); ecp_copy(&group.G,…
Elector Niklas
  • 151
  • 1
  • 9
1
vote
2 answers

Cipher key is always 20-bytes (with null padding) in crypt_and_hash in PolarSSL

I'm writing an application whose security is based on the crypt_and_hash example provided with the PolarSSL package. In the example, crypt_and_hash takes in a key (supplied via a command-line argument) and a random 16-byte IV. It then garbles them…
1
vote
1 answer

Is Encryption-Decryption irreversable

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. As you might see first i encrypted…
nerd
  • 115
  • 1
  • 7
1
vote
1 answer

Replace OpenSSL by polarSSL

I have a server which uses OpenSSL for its basic TLS/SSL services. I wanted to replace OpenSSL with PolarSSL in my server if possible. So I wanted to know if we have programs with PolarSSL support for these services (preferably my current programs)…
1
vote
0 answers

How to embed and use polarSSL into Android project?

Currently, I'm trying to use PolarSSL to make a SSL connection between Android and iOS devices. I'm able to embed it into iOS project using this library https://github.com/x2on/PolarSSL-for-iOS However, I cannot find any tutorial or example for…