Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] Replace ocf-linux with cryptodev-linux
@ 2014-03-26 10:15 Kai Kang
  2014-03-26 10:15 ` [PATCH 1/3] cryptodev-linux: add recipe Kai Kang
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Kai Kang @ 2014-03-26 10:15 UTC (permalink / raw)
  To: openembedded-core

Replace ocf-linux with cryptodev-linux because linux-yocto use cryptodev-linux to implement /dev/crypto.

Build for qemux86 and qemuarm. Test on qemux86.

Test steps:
1 set CONFIG_CRYPTODEV for linux-yocto by menuconfig
  Cryptographic API  ---> cryptodev module support

2 bitbake core-image-sato
3 test openssl on target:
3.1 load kernel module cryptodev first
root@qemux86:~# modprobe cryptodev

3.2 test openssl
root@qemux86:~# echo "test" > test.txt

root@qemux86:~# openssl aes-128-cbc -salt -engine cryptodev -in test.txt -out test.txt.aes
engine "cryptodev" set.
enter aes-128-cbc encryption password:
Verifying - enter aes-128-cbc encryption password:

root@qemux86:~# openssl aes-128-cbc -d -salt -engine cryptodev -in test.txt.aes -out test.txt.out
engine "cryptodev" set.
enter aes-128-cbc decryption password:		<-- input wrong password here
bad decrypt
3078080188:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:539:

root@qemux86:~# openssl aes-128-cbc -d -salt -engine cryptodev -in test.txt.aes -out test.txt.out
engine "cryptodev" set.
enter aes-128-cbc decryption password:

root@qemux86:~# ls -l
-rw-r--r--    1 root     root             5 Mar 26 10:07 test.txt
-rw-r--r--    1 root     root            32 Mar 26 10:08 test.txt.aes
-rw-r--r--    1 root     root             5 Mar 26 10:09 test.txt.out
root@qemux86:~# cat test.txt.aes
Salted__�0�c5'A�vU���`root@qemux86:~# 
root@qemux86:~# cat test.txt.out
test
root@qemux86:~# 


The following changes since commit 39846ddbce87d26eb68870914bf86a8ce5e86e5c:

  bitbake: data_smart: Fix caching issue for double remove references (2014-03-25 22:28:42 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib kangkai/ocf-linux
  http://git.yoctoproject.org/cgit.cgi//log/?h=kangkai/ocf-linux

Kai Kang (3):
  cryptodev-linux: add recipe
  openssl: replace dependency ocf-linux with cryptodev-linux
  ocf-linux: remove recipe

 .../openssl/cryptodev-linux_1.6.bb                 | 22 ++++++++++++++++++++
 meta/recipes-connectivity/openssl/ocf-linux.inc    | 24 ----------------------
 .../openssl/ocf-linux_20120127.bb                  |  6 ------
 .../recipes-connectivity/openssl/openssl_1.0.1e.bb |  2 +-
 4 files changed, 23 insertions(+), 31 deletions(-)
 create mode 100644 meta/recipes-connectivity/openssl/cryptodev-linux_1.6.bb
 delete mode 100644 meta/recipes-connectivity/openssl/ocf-linux.inc
 delete mode 100644 meta/recipes-connectivity/openssl/ocf-linux_20120127.bb

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-03-31  3:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 10:15 [PATCH 0/3] Replace ocf-linux with cryptodev-linux Kai Kang
2014-03-26 10:15 ` [PATCH 1/3] cryptodev-linux: add recipe Kai Kang
2014-03-26 14:40   ` Otavio Salvador
2014-03-28 17:11   ` Denys Dmytriyenko
2014-03-26 10:15 ` [PATCH 2/3] openssl: replace dependency ocf-linux with cryptodev-linux Kai Kang
2014-03-26 10:15 ` [PATCH 3/3] ocf-linux: remove recipe Kai Kang
2014-03-26 14:42 ` [PATCH 0/3] Replace ocf-linux with cryptodev-linux Otavio Salvador
2014-03-28  3:03   ` Kang Kai
2014-03-28 17:13   ` Denys Dmytriyenko
2014-03-28 17:18     ` Bruce Ashfield
2014-03-28 17:34       ` Denys Dmytriyenko
2014-03-28 17:42         ` Bruce Ashfield
2014-03-28 17:22     ` Richard Purdie
2014-03-28 17:37       ` Denys Dmytriyenko
2014-03-28  9:50 ` Richard Purdie
2014-03-31  3:02   ` Kang Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox