roleoroleo / onvif_simple_server

Light implementation of an onvif server intended for use in resource-constrained devices
GNU General Public License v3.0
20 stars 7 forks source link

Using tomcrypt or mbedtls #1

Closed ZigFisher closed 8 months ago

ZigFisher commented 1 year ago

Good afternoon ! Thank you very much for your project, it is very interesting. Please tell me why you chose tomcrypt library and not mbedtls ? The second library is more widespread and used in many places. Maybe you have plans to switch to it in the future ? Thank you.

roleoroleo commented 1 year ago

I compiled this project with both libraries. With tomcrypt the size of the binary (statically compiled) is about 52 KB, with mbedtls is about 60 KB. But there are no other reasons. If you want, I can add a compilation flag to choose the library.

roleoroleo commented 1 year ago

I don't know if I compiled mbedtls with the minimum set of features. This is my config file:

#define MBEDTLS_HAVE_ASM
#define MBEDTLS_HAVE_TIME
#define MBEDTLS_HAVE_TIME_DATE
#define MBEDTLS_SHA1_C
#define MBEDTLS_BASE64_C
ZigFisher commented 1 year ago

Thank you very much for your reply. I added your ONVIF solution to OpenIPC project recently. https://github.com/OpenIPC/firmware/tree/master/general/package/onvif-simple-server We use mbedtls internally and we are very interested in this solution. I see your commit, I will try out the new solution soon and give feedback. Thank you, Sir !