| 1 |
/* camellia-vaes-avx2-amd64.S - GFNI/AVX2 implementation of Camellia cipher |
| 2 |
* |
| 3 |
* Copyright (C) 2022 Jussi Kivilinna <[email protected]> |
| 4 |
* |
| 5 |
* This file is part of Libgcrypt. |
| 6 |
* |
| 7 |
* Libgcrypt is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU Lesser General Public License as |
| 9 |
* published by the Free Software Foundation; either version 2.1 of |
| 10 |
* the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* Libgcrypt is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU Lesser General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU Lesser General Public |
| 18 |
* License along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#include <config.h> |
| 22 |
|
| 23 |
#ifdef __x86_64 |
| 24 |
#if (defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) || \ |
| 25 |
defined(HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS)) && \ |
| 26 |
defined(ENABLE_GFNI_SUPPORT) && defined(ENABLE_AVX2_SUPPORT) |
| 27 |
|
| 28 |
#define CAMELLIA_GFNI_BUILD 1 |
| 29 |
#define FUNC_NAME(func) _gcry_camellia_gfni_avx2_ ## func |
| 30 |
|
| 31 |
#include "camellia-aesni-avx2-amd64.h" |
| 32 |
|
| 33 |
#endif /* defined(ENABLE_GFNI_SUPPORT) && defined(ENABLE_AVX2_SUPPORT) */ |
| 34 |
#endif /* __x86_64 */ |