Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124722

Forum Post: Checksums and Encryption of large files using the OCF /dev/crypto

$
0
0

Hi,

I have successfully installed the OCF on my DM814x system which enables the HW acceleration of the DSP. All the test code runs correctly and I get good performance.

But I cannot get it to work with buffers/files larger than 64K.

In cryptodev.h I can see that there is a limitation of CRYPTO_MAX_DATA_LEN (which is set to 64K-1) so I assume that this is the largest data size that can be processed per call to /dev/crypto but I cannot figure out how to split larger buffers into multiple calls into /dev/crypto in order to achieve the processing of larger buffers!

Can someone please help me get around this problem since I will typically have to get MD5/SHA-1/... for buffers larger than 1MB.

Best regards,

Karsten


Viewing all articles
Browse latest Browse all 124722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>