uencrypt: split common and library-specific code
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Sun, 19 Feb 2023 02:19:31 +0000 (23:19 -0300)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Fri, 17 Mar 2023 20:22:54 +0000 (17:22 -0300)
commit1781e7408a62de72193ddff5dbf5d9ff772a5847
tree1f17ce06d8e6400608324bf8d41f746573fbf84a
parent4662adef2ad02dc5903516f69da017dcecf392c9
uencrypt: split common and library-specific code

This splits the code in 4 files:
 - uencrypt.h
 - uencrypt.c - main program
 - uencrypt-openssl.c - OpenSSL/wolfSSL implementation
 - uencrypt-mbedtls - mbedTLS implementation

Other changes, accounting for ~400 bytes increase in ipk size:
 - more error condition checking and reporting,
 - hide key and iv command line arguments

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
package/utils/uencrypt/src/uencrypt-openssl.c
package/utils/uencrypt/src/uencrypt.c [new file with mode: 0644]
package/utils/uencrypt/src/uencrypt.h [new file with mode: 0644]