diff options
author | Chunrong Guo <chunrong.guo@nxp.com> | 2017-11-15 13:26:09 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-11-16 11:09:27 -0200 |
commit | d709b2e285633fad2818baf53f3f1ddd35cf8527 (patch) | |
tree | cfdf0d78b6fb59e7b090936161d40e7311978096 /recipes-kernel/cryptodev/sdk_patches/0002-refactoring-relocate-code-to-simplify-later-patches.patch | |
parent | 2da03a6ba76d78b075579d569e608ace0334ba39 (diff) | |
download | meta-freescale-d709b2e285633fad2818baf53f3f1ddd35cf8527.tar.gz |
cryptodev: update recipes
*Update URL to fetch qoriq-open-source github
*Update to f365c69d785
This includes the following changes:
f365c69 - add support for composite TLS10(SHA1,AES) algorithm offload
ec25290 - check session flags early to avoid incorrect failure modes
6213ae5 - add support for RSA public and private key operations
3245b0f - move structure definition to cryptodev_int.h
00a6861 - remove unnecessary header inclusion
1d7c848 - fix type of returned value
a705360 - convert to new AEAD interface in kernels v4.2+
c2bf0e4 - refactoring: relocate code to simplify later patches
20dcf07 - refactoring: split big function to simplify maintainance
87d959d - Release version 1.9
6818263 - Fix ablkcipher algorithms usage in v4.8+ kernels
26e167f - zc: Use the power of #elif
2b29be8 - adjust to API changes in kernel >=4.10
2dbbb23 - do more strict code checking to avoid maintenance issues
88223e4 - avoid implicit conversion between signed and unsigned char
8db6905 - use buf_align macro to reduce code duplication
b6d0e0f - rename header file to clarify purpose
1fd6062 - fix warnings of "implicit declaration of function" in async_speed
ff3c8ab - remove not used local variables
25a1276 - fix incorrect return code in case of error from openssl_cioccrypt
e7ef4ea - Merge pull request #17 from michaelweiser/gup_flags
99c6d21 - fix ignored SIGALRM signals on some platforms
71975fa - setting KERNEL_DIR is not necessary to build tests
a96ff97 - fix issues with install target
*Cryptodev-linux git includes all sdk patches so remove sdk patches folder
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0002-refactoring-relocate-code-to-simplify-later-patches.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0002-refactoring-relocate-code-to-simplify-later-patches.patch | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0002-refactoring-relocate-code-to-simplify-later-patches.patch b/recipes-kernel/cryptodev/sdk_patches/0002-refactoring-relocate-code-to-simplify-later-patches.patch deleted file mode 100644 index b948c914..00000000 --- a/recipes-kernel/cryptodev/sdk_patches/0002-refactoring-relocate-code-to-simplify-later-patches.patch +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | From c2bf0e42b1d9fda60cde4a3a682784d349ef1c0b Mon Sep 17 00:00:00 2001 | ||
2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
3 | Date: Thu, 4 May 2017 15:06:21 +0300 | ||
4 | Subject: [PATCH 2/9] refactoring: relocate code to simplify later patches | ||
5 | |||
6 | This code move will simplify the conversion to new AEAD interface in | ||
7 | next patches | ||
8 | |||
9 | Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> | ||
10 | --- | ||
11 | authenc.c | 17 +++++++++-------- | ||
12 | 1 file changed, 9 insertions(+), 8 deletions(-) | ||
13 | |||
14 | diff --git a/authenc.c b/authenc.c | ||
15 | index 28eb0f9..95727b4 100644 | ||
16 | --- a/authenc.c | ||
17 | +++ b/authenc.c | ||
18 | @@ -711,11 +711,18 @@ static int crypto_auth_zc_aead(struct csession *ses_ptr, struct kernel_crypt_aut | ||
19 | return -ENOMEM; | ||
20 | } | ||
21 | |||
22 | + ret = get_userbuf(ses_ptr, caop->src, caop->len, caop->dst, kcaop->dst_len, | ||
23 | + kcaop->task, kcaop->mm, &src_sg, &dst_sg); | ||
24 | + if (unlikely(ret)) { | ||
25 | + derr(1, "get_userbuf(): Error getting user pages."); | ||
26 | + goto free_auth_buf; | ||
27 | + } | ||
28 | + | ||
29 | if (caop->auth_src && caop->auth_len > 0) { | ||
30 | if (unlikely(copy_from_user(auth_buf, caop->auth_src, caop->auth_len))) { | ||
31 | derr(1, "unable to copy auth data from userspace."); | ||
32 | ret = -EFAULT; | ||
33 | - goto free_auth_buf; | ||
34 | + goto free_pages; | ||
35 | } | ||
36 | |||
37 | sg_init_one(&tmp, auth_buf, caop->auth_len); | ||
38 | @@ -724,16 +731,10 @@ static int crypto_auth_zc_aead(struct csession *ses_ptr, struct kernel_crypt_aut | ||
39 | auth_sg = NULL; | ||
40 | } | ||
41 | |||
42 | - ret = get_userbuf(ses_ptr, caop->src, caop->len, caop->dst, kcaop->dst_len, | ||
43 | - kcaop->task, kcaop->mm, &src_sg, &dst_sg); | ||
44 | - if (unlikely(ret)) { | ||
45 | - derr(1, "get_userbuf(): Error getting user pages."); | ||
46 | - goto free_auth_buf; | ||
47 | - } | ||
48 | - | ||
49 | ret = auth_n_crypt(ses_ptr, kcaop, auth_sg, caop->auth_len, | ||
50 | src_sg, dst_sg, caop->len); | ||
51 | |||
52 | +free_pages: | ||
53 | release_user_pages(ses_ptr); | ||
54 | |||
55 | free_auth_buf: | ||
56 | -- | ||
57 | 2.7.4 | ||
58 | |||