diff options
| author | patrick <> | 2019-03-13 10:18:30 +0000 |
|---|---|---|
| committer | patrick <> | 2019-03-13 10:18:30 +0000 |
| commit | 96e62a13a6d04fbc03969ab4a0627800a44f8342 (patch) | |
| tree | 6dadd834bed727ad5c50b373566559b87fd8a447 /src/lib/libcrypto/arm_arch.h | |
| parent | a2c7f1590e65b6f0be62929015b816fb15bc9fff (diff) | |
| download | openbsd-96e62a13a6d04fbc03969ab4a0627800a44f8342.tar.gz openbsd-96e62a13a6d04fbc03969ab4a0627800a44f8342.tar.bz2 openbsd-96e62a13a6d04fbc03969ab4a0627800a44f8342.zip | |
Backport support for probing ARMv8 HW acceleration capabilities on armv7
in preparation for adding support for the probing code for arm64.
ok bcook@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/arm_arch.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arm_arch.h b/src/lib/libcrypto/arm_arch.h index 8b8a05b5f7..a64c6da46e 100644 --- a/src/lib/libcrypto/arm_arch.h +++ b/src/lib/libcrypto/arm_arch.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: arm_arch.h,v 1.8 2018/01/07 12:35:52 kettenis Exp $ */ | 1 | /* $OpenBSD: arm_arch.h,v 1.9 2019/03/13 10:18:30 patrick Exp $ */ |
| 2 | #ifndef __ARM_ARCH_H__ | 2 | #ifndef __ARM_ARCH_H__ |
| 3 | #define __ARM_ARCH_H__ | 3 | #define __ARM_ARCH_H__ |
| 4 | 4 | ||
| @@ -41,7 +41,11 @@ | |||
| 41 | #if !defined(__ASSEMBLER__) | 41 | #if !defined(__ASSEMBLER__) |
| 42 | extern unsigned int OPENSSL_armcap_P; | 42 | extern unsigned int OPENSSL_armcap_P; |
| 43 | 43 | ||
| 44 | #define ARMV7_NEON (1<<0) | 44 | #define ARMV7_NEON (1<<0) |
| 45 | #define ARMV8_AES (1<<1) | ||
| 46 | #define ARMV8_SHA1 (1<<2) | ||
| 47 | #define ARMV8_SHA256 (1<<3) | ||
| 48 | #define ARMV8_PMULL (1<<4) | ||
| 45 | #endif | 49 | #endif |
| 46 | 50 | ||
| 47 | #if defined(__OpenBSD__) | 51 | #if defined(__OpenBSD__) |
