diff options
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0100-close-the-session-after-every-test.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0100-close-the-session-after-every-test.patch | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0100-close-the-session-after-every-test.patch b/recipes-kernel/cryptodev/sdk_patches/0100-close-the-session-after-every-test.patch deleted file mode 100644 index a108b9d0..00000000 --- a/recipes-kernel/cryptodev/sdk_patches/0100-close-the-session-after-every-test.patch +++ /dev/null | |||
@@ -1,108 +0,0 @@ | |||
1 | From 3ca93181fbcaa0acac01588738eb50270cf4999a Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexe Radu <radu.alexe@nxp.com> | ||
3 | Date: Fri, 9 Dec 2016 16:05:56 +0200 | ||
4 | Subject: [PATCH 100/104] close the session after every test | ||
5 | |||
6 | Signed-off-by: Alexe Radu <radu.alexe@nxp.com> | ||
7 | --- | ||
8 | tests/speed.c | 42 ++++++++++++++++++++++++++++++++++++++++++ | ||
9 | 1 file changed, 42 insertions(+) | ||
10 | |||
11 | diff --git a/tests/speed.c b/tests/speed.c | ||
12 | index 61259b9..99ef75b 100644 | ||
13 | --- a/tests/speed.c | ||
14 | +++ b/tests/speed.c | ||
15 | @@ -488,6 +488,12 @@ int run_null(int fdc, struct test_params tp) | ||
16 | } | ||
17 | |||
18 | do_test_vectors(fdc, tp, &sess); | ||
19 | + | ||
20 | + if (ioctl(fdc, CIOCFSESSION, &sess)) { | ||
21 | + perror("ioctl(CIOCFSESSION)"); | ||
22 | + return -EINVAL; | ||
23 | + } | ||
24 | + | ||
25 | return 0; | ||
26 | } | ||
27 | |||
28 | @@ -507,6 +513,12 @@ int run_aes_128_cbc(int fdc, struct test_params tp) | ||
29 | } | ||
30 | |||
31 | do_test_vectors(fdc, tp, &sess); | ||
32 | + | ||
33 | + if (ioctl(fdc, CIOCFSESSION, &sess)) { | ||
34 | + perror("ioctl(CIOCFSESSION)"); | ||
35 | + return -EINVAL; | ||
36 | + } | ||
37 | + | ||
38 | return 0; | ||
39 | } | ||
40 | |||
41 | @@ -526,6 +538,12 @@ int run_aes_256_xts(int fdc, struct test_params tp) | ||
42 | } | ||
43 | |||
44 | do_test_vectors(fdc, tp, &sess); | ||
45 | + | ||
46 | + if (ioctl(fdc, CIOCFSESSION, &sess)) { | ||
47 | + perror("ioctl(CIOCFSESSION)"); | ||
48 | + return -EINVAL; | ||
49 | + } | ||
50 | + | ||
51 | return 0; | ||
52 | } | ||
53 | |||
54 | @@ -541,6 +559,12 @@ int run_crc32c(int fdc, struct test_params tp) | ||
55 | } | ||
56 | |||
57 | do_test_vectors(fdc, tp, &sess); | ||
58 | + | ||
59 | + if (ioctl(fdc, CIOCFSESSION, &sess)) { | ||
60 | + perror("ioctl(CIOCFSESSION)"); | ||
61 | + return -EINVAL; | ||
62 | + } | ||
63 | + | ||
64 | return 0; | ||
65 | } | ||
66 | |||
67 | @@ -556,6 +580,12 @@ int run_sha1(int fdc, struct test_params tp) | ||
68 | } | ||
69 | |||
70 | do_test_vectors(fdc, tp, &sess); | ||
71 | + | ||
72 | + if (ioctl(fdc, CIOCFSESSION, &sess)) { | ||
73 | + perror("ioctl(CIOCFSESSION)"); | ||
74 | + return -EINVAL; | ||
75 | + } | ||
76 | + | ||
77 | return 0; | ||
78 | } | ||
79 | |||
80 | @@ -571,6 +601,12 @@ int run_sha256(int fdc, struct test_params tp) | ||
81 | } | ||
82 | |||
83 | do_test_vectors(fdc, tp, &sess); | ||
84 | + | ||
85 | + if (ioctl(fdc, CIOCFSESSION, &sess)) { | ||
86 | + perror("ioctl(CIOCFSESSION)"); | ||
87 | + return -EINVAL; | ||
88 | + } | ||
89 | + | ||
90 | return 0; | ||
91 | } | ||
92 | |||
93 | @@ -595,6 +631,12 @@ int run_authenc(int fdc, struct test_params tp) | ||
94 | } | ||
95 | |||
96 | do_test_vectors(fdc, tp, &sess); | ||
97 | + | ||
98 | + if (ioctl(fdc, CIOCFSESSION, &sess)) { | ||
99 | + perror("ioctl(CIOCFSESSION)"); | ||
100 | + return -EINVAL; | ||
101 | + } | ||
102 | + | ||
103 | return 0; | ||
104 | } | ||
105 | |||
106 | -- | ||
107 | 2.10.2 | ||
108 | |||