uencrypt: add support for mbedtls
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Fri, 17 Feb 2023 11:12:40 +0000 (08:12 -0300)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Fri, 17 Mar 2023 20:22:53 +0000 (17:22 -0300)
commit4662adef2ad02dc5903516f69da017dcecf392c9
treed41fcffca79a0ef3d2247f57cd44ec6b23896a26
parent6ac6f2402da7ced5b6295e446693a78179923fdd
uencrypt: add support for mbedtls

This commit includes some additional changes:
 - better handling of iv and keys in openssl/wolfssl variants
 - fix compiler warnings and whitespace
 - build all 3 variants as separate packages
 - adjust the new package name in targets' DEVICE_PACKAGES
 - remove PKG_FLAGS:=nonshared

[Beeline SmartBox Flash - OK]
Tested-by: Mikhail Zhilkin <csharper2005@gmail.com>
[after test: replaced a hardcoded IV size of 16 by cipher_info->iv_size]
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
package/utils/uencrypt/Makefile
package/utils/uencrypt/src/CMakeLists.txt
package/utils/uencrypt/src/uencrypt-mbedtls.c [new file with mode: 0644]
package/utils/uencrypt/src/uencrypt-openssl.c [new file with mode: 0644]
package/utils/uencrypt/src/uencrypt.c [deleted file]
target/linux/ath79/image/generic-tp-link.mk
target/linux/ramips/image/mt7621.mk