Coverage Report

Created: 2025-03-18 06:55

/src/gnutls/lib/accelerated/accelerated.c
Line
Count
Source
1
/*
2
 * Copyright (C) 2011-2012 Free Software Foundation, Inc.
3
 *
4
 * Author: Nikos Mavrogiannopoulos
5
 *
6
 * This file is part of GnuTLS.
7
 *
8
 * The GnuTLS is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU Lesser General Public License
10
 * as published by the Free Software Foundation; either version 2.1 of
11
 * the License, or (at your option) any later version.
12
 *
13
 * This library is distributed in the hope that it will be useful, but
14
 * WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 * Lesser General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU Lesser General Public License
19
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
 *
21
 */
22
23
#include "config.h"
24
#include "accelerated.h"
25
#if defined(ASM_X86)
26
#include "x86/aes-x86.h"
27
#include "x86/x86-common.h"
28
#elif defined(ASM_AARCH64)
29
#include "aarch64/aarch64-common.h"
30
#endif
31
32
void _gnutls_register_accel_crypto(void)
33
4
{
34
4
#if defined(ASM_X86)
35
4
  register_x86_crypto();
36
4
#endif
37
38
#if defined(ASM_AARCH64)
39
  register_aarch64_crypto();
40
#endif
41
42
4
  return;
43
4
}