I am working in a project wherein the data is backed up to the device and the files are to be encrypted. Since encryption adds overhead, I tried to use the cryptographic hardware accelerator of am335x thinking that it would reduce the overhead of encryption. But while using it with my application program, the performance (i.e in terms of the total time for backup) was lesser than that of the software implementation of encryption (more time was taken for backup in hardware based encryption).
For further information I am encrypting the files in the chunk of 512 bytes each because of the application design. Does that affect the performance because of the increased access of hardware?
In one of the previous posts a guy mention that, using openssl and cryptodev kernel module may even make the performance worse. If that is so, then in which cases the accelerator gives better performance?
Thank you.