| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: t_aes.c,v 1.1 2020/06/30 20:32:11 riastradh Exp $ */ | | 1 | /* $NetBSD: t_aes.c,v 1.2 2020/07/26 12:43:27 martin Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2020 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2020 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -19,26 +19,27 @@ | | | @@ -19,26 +19,27 @@ |
19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | | 19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 | * POSSIBILITY OF SUCH DAMAGE. | | 26 | * POSSIBILITY OF SUCH DAMAGE. |
27 | */ | | 27 | */ |
28 | | | 28 | |
29 | #include <sys/types.h> | | 29 | #include <sys/types.h> |
30 | | | 30 | |
31 | #include <crypto/aes/aes.h> | | 31 | #include <crypto/aes/aes.h> |
| | | 32 | #include <crypto/aes/aes_impl.h> |
32 | #include <crypto/aes/aes_bear.h> | | 33 | #include <crypto/aes/aes_bear.h> |
33 | | | 34 | |
34 | #if defined(__i386__) || defined(__x86_64__) | | 35 | #if defined(__i386__) || defined(__x86_64__) |
35 | #include <crypto/aes/arch/x86/aes_ni.h> | | 36 | #include <crypto/aes/arch/x86/aes_ni.h> |
36 | #include <crypto/aes/arch/x86/aes_sse2.h> | | 37 | #include <crypto/aes/arch/x86/aes_sse2.h> |
37 | #include <crypto/aes/arch/x86/aes_ssse3.h> | | 38 | #include <crypto/aes/arch/x86/aes_ssse3.h> |
38 | #include <crypto/aes/arch/x86/aes_via.h> | | 39 | #include <crypto/aes/arch/x86/aes_via.h> |
39 | #endif | | 40 | #endif |
40 | | | 41 | |
41 | #ifdef __aarch64__ | | 42 | #ifdef __aarch64__ |
42 | #include <crypto/aes/arch/arm/aes_armv8.h> | | 43 | #include <crypto/aes/arch/arm/aes_armv8.h> |
43 | #endif | | 44 | #endif |
44 | | | 45 | |