• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #ifndef OPENSSL_HEADER_ARM_ARCH_H
11 #define OPENSSL_HEADER_ARM_ARCH_H
12 
13 #include <openssl/target.h>
14 
15 // arm_arch.h contains symbols used by ARM assembly, and the C code that calls
16 // it. It is included as a public header to simplify the build, but is not
17 // intended for external use.
18 
19 #if defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)
20 
21 // ARMV7_NEON is true when a NEON unit is present in the current CPU.
22 #define ARMV7_NEON (1 << 0)
23 
24 // ARMV8_AES indicates support for hardware AES instructions.
25 #define ARMV8_AES (1 << 2)
26 
27 // ARMV8_SHA1 indicates support for hardware SHA-1 instructions.
28 #define ARMV8_SHA1 (1 << 3)
29 
30 // ARMV8_SHA256 indicates support for hardware SHA-256 instructions.
31 #define ARMV8_SHA256 (1 << 4)
32 
33 // ARMV8_PMULL indicates support for carryless multiplication.
34 #define ARMV8_PMULL (1 << 5)
35 
36 // ARMV8_SHA512 indicates support for hardware SHA-512 instructions.
37 #define ARMV8_SHA512 (1 << 6)
38 
39 #endif  // ARM || AARCH64
40 
41 #endif  // OPENSSL_HEADER_ARM_ARCH_H
42