[Ocf-linux-users] Computing SHA1 for large files
Brought to you by:
david-m
From: Ajay M. <aj...@sy...> - 2012-06-19 23:15:03
|
Hello, I am a beginner at OCF interface. I have been trying to compute SHA1 hash for a large file (say 2GB). I thought, I could read the file say 8192 sized block at a time, call CIOCCRYPT with updated buffer. In the end, call CIOCCRYPT one last time with src=NULL and len=0. I should be able to get the mac back in the buffer pointed by mac. Tried it but this doesn't seem to work. What is the right way of working with large files and OCF framework. I know very basic question but any amount of googling and stack-overflowing didn't help. Thanks! -ajay |