Hi Devyr,
Yes this is entirely possible. In fact we have an example of doing this in our wolfCLU (Command Line Utility). In that solution we encrypt 1K at a time with CBC and output the result to a file.
The relevant while loop can be seen at this link: https://github.com/wolfSSL/wolfssl-exam … ypt.c#L155
An example of using the command line tool once built and installed based off the README would be:
wolfssl -encrypt 3des-cbc-168 -pwd ThisIsMyPassword -in somefile.txt -out encryptedfile.txt
That would encrypt your file, 1 Kilobyte at a time using CBC mode.
You may also use that code as a reference if you are looking to develop your own solution.
If you are looking for ECB mode then yes wolfSSL does support ECB as well.
Warm Regards,
Kaleb