mbed TLS v2.16.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
include
mbedtls
aesni.h
Go to the documentation of this file.
1
9
/*
10
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
11
* SPDX-License-Identifier: GPL-2.0
12
*
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 2 of the License, or
16
* (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License along
24
* with this program; if not, write to the Free Software Foundation, Inc.,
25
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26
*
27
* This file is part of mbed TLS (https://tls.mbed.org)
28
*/
29
#ifndef MBEDTLS_AESNI_H
30
#define MBEDTLS_AESNI_H
31
32
#if !defined(MBEDTLS_CONFIG_FILE)
33
#include "
config.h
"
34
#else
35
#include MBEDTLS_CONFIG_FILE
36
#endif
37
38
#include "
aes.h
"
39
40
#define MBEDTLS_AESNI_AES 0x02000000u
41
#define MBEDTLS_AESNI_CLMUL 0x00000002u
42
43
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \
44
( defined(__amd64__) || defined(__x86_64__) ) && \
45
! defined(MBEDTLS_HAVE_X86_64)
46
#define MBEDTLS_HAVE_X86_64
47
#endif
48
49
#if defined(MBEDTLS_HAVE_X86_64)
50
51
#ifdef __cplusplus
52
extern
"C"
{
53
#endif
54
66
int
mbedtls_aesni_has_support(
unsigned
int
what );
67
81
int
mbedtls_aesni_crypt_ecb(
mbedtls_aes_context
*ctx,
82
int
mode,
83
const
unsigned
char
input[16],
84
unsigned
char
output[16] );
85
99
void
mbedtls_aesni_gcm_mult(
unsigned
char
c[16],
100
const
unsigned
char
a[16],
101
const
unsigned
char
b[16] );
102
114
void
mbedtls_aesni_inverse_key(
unsigned
char
*invkey,
115
const
unsigned
char
*fwdkey,
116
int
nr );
117
130
int
mbedtls_aesni_setkey_enc(
unsigned
char
*rk,
131
const
unsigned
char
*key,
132
size_t
bits );
133
134
#ifdef __cplusplus
135
}
136
#endif
137
138
#endif
/* MBEDTLS_HAVE_X86_64 */
139
140
#endif
/* MBEDTLS_AESNI_H */
config.h
Configuration options (set of defines)
aes.h
This file contains AES definitions and functions.
mbedtls_aes_context
The AES context-type definition.
Definition:
aes.h:88
Generated on Mon Apr 22 2019 17:29:33 for mbed TLS v2.16.1 by
1.8.8