uencrypt: support all available ciphers
authorNick French <nickfrench@gmail.com>
Sat, 13 Aug 2022 15:23:58 +0000 (10:23 -0500)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 19 Aug 2022 20:20:00 +0000 (22:20 +0200)
commit764600648f4b138979848a484df553825a140166
tree0b59e2fcb9ddb04b3e6c9bc18962e4956dd3aabf
parenta6b0d0806055a53a2538df83f8322c38ee9f3441
uencrypt: support all available ciphers

Modify uencrypt to support any cipher provided by ssl library.

Original tool supported only AES-128-CBC to decrypt the config
mtd of Arcadyan WG430223/WG443223.

TP-Link Deco S4 has mtd configuration encrypted with DES-ECB,
so make the cipher generic to support both routers.

Signed-off-by: Nick French <nickfrench@gmail.com>
Reviewed-by: Eneas U de Queiroz >cotequeiroz@gmail.com>
package/utils/uencrypt/Makefile
package/utils/uencrypt/src/uencrypt.c