AnsweredAssumed Answered

how to link with libsrt-1.5.3 to openssl through cryptodev .on imx6 target board srtp encription using camm .

Question asked by veeranjaneyulu g on Feb 1, 2016
Latest reply on Jun 7, 2016 by Tu Tran


we compiled libsrtp-1.5.3 source by using yocto set-up cross tool chain . and configure the source and created* using  below commands


$source /opt/pokt/cross tool-chain

$./configure --host=arm-poky-linux-gnueabi --enable-openssl

$make shared_library


and then copied into yocto setup build directory tmp/sysroot/machin-name/usr/lib  path.


then compile gstreamer1.0-plugins-bad with bitbake and added related stuff in gstreamer1.0-plugins-bad/version/build/ext/srtp.Those paths Makefiles updated/enabled srtp related things(SRTP_HAVE=srtp,SRTP_LIB=lsrtp,SRTP_DIR=srtp flages enabled in Makefile) in gstreamer1.0-plugins-bad source.finally we got* copied into rootfs /usr/lib/gstreamer-1.0 path , copied into sdcard path is usr/lib path.



cryptodev :


cryptodev.ko we copied into sdcard path is lib/modules/<kernle version>/extra/cryptodev.ko


on target board



$insmod/modprobe cryptodev.ko

$openssl aes-128-cbc -engine cryptodev -in t.txt out

through openssl encryption/decryption is working  and then how to run libsrtp to openssl or srtp .with caam module .can you any body help me.



Then we run above gstreamer1.0-rtsp-server binary test-video run on target board.client side we run rtsprc udp command and piplines we run client side .In wireshark we didnt get srtp packet we got rtp and rtsp.

Awaiting for your valuable reply .



Thanks & Regards