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

Hi

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

 

$source /opt/pokt/cross tool-chain

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

$make shared_library

 

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

 

then compile gstreamer1.0-plugins-bad with bitbake and added libgstsrtp.so 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 libgstsrtp.so* copied into rootfs /usr/lib/gstreamer-1.0 path ,libsrtp.so 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

 

$lsmod

$insmod/modprobe cryptodev.ko

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

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.

 

$test-video

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

veeranjaneyulu

Outcomes