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 save memory, however the standard TLS record can be up to 16 kB. Is it possible to limit the record size in TLS or at the very least require each SSL_write command to create its own record? Otherwise OpenSSL may concatenate the data and create a record that is too long to be received. I have complete control over both ends of the connection so there shouldn't be any issues with compatibility.
1
There are 1 best solutions below
Related Questions in OPENSSL
- openssl: EVP_PKEY_derive failure
- Python SSL Error , Server side - Client certificate verify failing with Intermediate cert - self-signed certificate in certificate chain (_ssl.c:1007)
- Why/How does Apache auto-include "DHE" TLS1.2 ciphers while nginx needs "dhparams" file?
- OpenSSL3.0 RSA Signature Verification in C
- ESP8266 - Unable to connect to MQTT Server via SSL (mutual authentication)
- CherryPy SSL Built-in Adapter Causing Port Contention with Netcat
- Cannot Load OpenSSL in IIS
- Flutter SecureSocketServer transfer
- openssl pbkdf2 and perl
- OpenSSL with C++ app - getting undefined references during compilation
- Restore sha-1 certificate fingerprint on OpenSSL without setting security level to zero
- SSL for PostgreSQL connection nodejs and express to conection on render host service
- Decrypt ruby DES-EDE3-CBC encrypted data in Python
- Recursively calculate SHA256 sum of all files in directory using OpenSSL
- Deterministic CTR_DRBG in OpenSSL
Related Questions in MBED
- How should USB MIDI packets be formatted?
- How can I solve the Problem during Mbed compile?(depthwise_conv.cc)
- Is there a way to make these printf() statements execute only on the rising edge of a button press?
- Add BLE descriptors using mbed os
- Mbedtls_ssl_close_notify takes more than 30 seconds if a delay is not provided before the function
- Using Mbed with CY8CKIT_062_BLE
- Combine HAL libraries and mbed libraries on same project
- Read Characteristic with MBED OS BLE GattClient
- Coupling between the time() C function and the underlying hardware
- Issues with gdbserver and stlink in configuring a mbed studio IDE development platform
- Servo only moves once
- STM32 fails to generate PWM using some timers
- mbed MPU6050 - Using the Madgwick Orientation Filter library
- How do I parse the time values received from ds1302 to be in integer format?
- RX interrupt using mBed OS Serial throwing Mutex error at runtime
Related Questions in POLARSSL
- Polars Dataframe change null to np.nan in Int row when use .to_numpy()
- Construct date column from year, month and day in Polars dataframe
- rust polars convert string column to datetime
- Is it possible to include PolarSSL and OpenSSL in the same project?
- AES decryption failing
- How to use mpi_read_binary() function?
- What is size (in bytes) of Mbed TLS rsa_context?
- Use mbedTLS as SSL library in QT
- how to encrypt a string in aes waywith mbedtls?
- Why is mbedTLS ECDSA signature dependend on hashing algorithm?
- STM32F4 HW_CRYPTO lower performance
- PolarSSl bignum.c will cause crash in Android 5.0 and above while using JNI
- How to pass the public key in .pem file to the polarssl rsa_context
- mbed TLS initialization
- How to decode X509 OID data in mbedTLS?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Try
BIO_set_write_buffer_size(), but you should just be able to control how much you read or send at a time, and flush the BIO after each write.Another strategy might be to create a memory BIO, and transmit the bytes of output it produces. You can’t control the maximum size of its buffer, but you should be able to control the chunk size manually that way.