Hi,
This is using SDK "ti-sdk-am335x-evm-05.07.00.00"
Using a freshly loaded SD card using prebuilt images and freshly booted, here is what I see:
am335x-evm login: root
root@am335x-evm:~# md5sum /media/mmcblk0p1/uImage
346b4bc26c838dd710303431c447efdd /media/mmcblk0p1/uImage
root@am335x-evm:~# openssl dgst -md5 /media/mmcblk0p1/uImage
MD5(/media/mmcblk0p1/uImage)= f62048e3a7bc3a61a443f1823702183b
root@am335x-evm:~# rm /dev/crypto
root@am335x-evm:~# openssl dgst -md5 /media/mmcblk0p1/uImage
MD5(/media/mmcblk0p1/uImage)= 346b4bc26c838dd710303431c447efdd
The hardware assisted hash is the odd man out. The software only hashes match.
Is this what others are seeing?
As a workaround, I have used the instructions at http://processors.wiki.ti.com/index.php/Build_OpenSSL_for_Sitara to build openssl, but I have left off the DUSE_CRYPTODEV_DIGESTS c flag. Now, after scp'ing the file onto the board and a fresh boot I see
am335x-evm login: root
root@am335x-evm:~# md5sum /media/mmcblk0p1/uImage
346b4bc26c838dd710303431c447efdd /media/mmcblk0p1/uImage
root@am335x-evm:~# /usr/local/ssl/bin/openssl dgst -md5 /media/mmcblk0p1/uImage
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
MD5(/media/mmcblk0p1/uImage)= 346b4bc26c838dd710303431c447efdd
Now the hashes match without deleting /dev/crypto. Of course the benchmarks for hashes per second went way down. But I get correct hashes and still have fast encryption. (Note that I didn't scp the openssl.cnf file over)
Jimmy