From: Kai Kang <kai.kang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 0/3] Replace ocf-linux with cryptodev-linux
Date: Wed, 26 Mar 2014 18:15:56 +0800 [thread overview]
Message-ID: <cover.1395825881.git.kai.kang@windriver.com> (raw)
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
next reply other threads:[~2014-03-26 10:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-26 10:15 Kai Kang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1395825881.git.kai.kang@windriver.com \
--to=kai.kang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.