summaryrefslogtreecommitdiff
path: root/ppc-simd.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-11 22:52:22 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-11 22:52:22 -0400
commit7fb34e9b0894ccb091550e0b9457b72f0920abea (patch)
tree69a22ecaf6cfd27c6b7f14d5f75dd83b638e68a4 /ppc-simd.cpp
parent9c9d5ebe8702c69aec7488b511475eefe33ba862 (diff)
downloadcryptopp-git-7fb34e9b0894ccb091550e0b9457b72f0920abea.tar.gz
Add Power8 AES encryption
This is the forward direction on encryption only. Crypto++ uses the "Equivalent Inverse Cipher" (FIPS-197, Section 5.3.5, p.23), and it is not compatible with IBM hardware. The library library will need to re-work the decryption key scheduling routines. (We may be able to work around it another way, but I have not investigated it).
Diffstat (limited to 'ppc-simd.cpp')
-rw-r--r--ppc-simd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ppc-simd.cpp b/ppc-simd.cpp
index d4c43b56..3c216001 100644
--- a/ppc-simd.cpp
+++ b/ppc-simd.cpp
@@ -24,7 +24,7 @@
#endif
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
-# include "altivec.h"
+# include <altivec.h>
# undef vector
# undef pixel
# undef bool
@@ -33,11 +33,11 @@
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
# if defined(CRYPTOPP_XLC_VERSION)
// #include <builtins.h>
- typedef vector unsigned char uint8x16_p8;
- typedef vector unsigned long long uint64x2_p8;
+ typedef __vector unsigned char uint8x16_p8;
+ typedef __vector unsigned long long uint64x2_p8;
#elif defined(CRYPTOPP_GCC_VERSION)
- typedef vector unsigned char uint8x16_p8;
- typedef vector unsigned long long uint64x2_p8;
+ typedef __vector unsigned char uint8x16_p8;
+ typedef __vector unsigned long long uint64x2_p8;
#endif
#endif