NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Talk:Cryptography Users Guide
Comments on Cryptography Users Guide
Contents
Ayoub.zaki said ...
Gregturne said ...
This is a known issue with the driver and the SHA hash function. Performing the hash on files bigger than about 60K will cause a crash. Without the driver installed the openssl software implentation will work on any file size. The issue is being worked, but I don't have a time frame for a solution right now.
--Gregturne 09:22, 8 February 2012 (CST)
Gregturne said ...
On the page that describes how to build OpenSSL, http://processors.wiki.ti.com/index.php/Build_OpenSSL_for_Sitara There is now a patch that will solve the problem of processing large files with SHA/MD5.
--Gregturne 13:28, 20 March 2012 (CDT)
Bsrinath said ...
Can anybody provide some pointers to any hardware documentation for AM335x that can be referred to in order to implement a crypto driver for OSes other than Linux.
--Bsrinath 23:36, 24 March 2013 (CDT)
Joelagnel said ...
Hello Bsrinath,
Please refer to the omap-sha/md5/aes kernel drivers provided with the SDK. A TRM is being worked on and should be available mid-year. Till then only code examples are available.
Also- refer to ocf_omap3_crpyto code for some examples on how to program the crypto hardware modules.
--Joelagnel 12:14, 28 March 2013 (CDT)
Hashing with HW acceleration seems to not work: I'm getting root@am37x-evm:/etc/openvpn# openssl dgst -sha1 file cryptodev_digest_final: digest failed
looking in the TI demos : cat ./usr/bin/openssl_gen_sha1hash.sh
DATAFILE=/home/root/rnddata
OPENSSL=/usr/bin/openssl
echo -e "\nGenerate SHA1 Hash"
if [ ! -r $DATAFILE ] then echo "Creating 10M random data file ($DATAFILE)" echo "Please Wait..." dd if=/dev/urandom of=$DATAFILE bs=1048576 count=10 fi
lsmod | grep ocf_omap3_cryptok >/dev/null if [ `echo $?` = "0" ] then rmmod ocf_omap3_cryptok fi
$OPENSSL dgst -sha1 $DATAFILE
So it's done without HW acceleration !
Any hints ?
Tx
--Ayoub.zaki 10:31, 16 January 2012 (CST)