diff options
Diffstat (limited to 'src/lib/block/aes')
-rw-r--r-- | src/lib/block/aes/aes.cpp | 22 | ||||
-rw-r--r-- | src/lib/block/aes/aes_power8/info.txt | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/block/aes/aes.cpp b/src/lib/block/aes/aes.cpp index 2813a5f5a..af7ec8f46 100644 --- a/src/lib/block/aes/aes.cpp +++ b/src/lib/block/aes/aes.cpp @@ -431,7 +431,7 @@ size_t aes_parallelism() #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return 4; } @@ -457,7 +457,7 @@ const char* aes_provider() #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return "power8"; } @@ -509,7 +509,7 @@ void AES_128::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return power8_encrypt_n(in, out, blocks); } @@ -544,7 +544,7 @@ void AES_128::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return power8_decrypt_n(in, out, blocks); } @@ -577,7 +577,7 @@ void AES_128::key_schedule(const uint8_t key[], size_t length) #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return aes_key_schedule(key, length, m_EK, m_DK, m_ME, m_MD); } @@ -620,7 +620,7 @@ void AES_192::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return power8_encrypt_n(in, out, blocks); } @@ -655,7 +655,7 @@ void AES_192::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return power8_decrypt_n(in, out, blocks); } @@ -688,7 +688,7 @@ void AES_192::key_schedule(const uint8_t key[], size_t length) #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return aes_key_schedule(key, length, m_EK, m_DK, m_ME, m_MD); } @@ -731,7 +731,7 @@ void AES_256::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return power8_encrypt_n(in, out, blocks); } @@ -766,7 +766,7 @@ void AES_256::decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return power8_decrypt_n(in, out, blocks); } @@ -799,7 +799,7 @@ void AES_256::key_schedule(const uint8_t key[], size_t length) #endif #if defined(BOTAN_HAS_AES_POWER8) - if(CPUID::has_ppc_crypto()) + if(CPUID::has_power_crypto()) { return aes_key_schedule(key, length, m_EK, m_DK, m_ME, m_MD); } diff --git a/src/lib/block/aes/aes_power8/info.txt b/src/lib/block/aes/aes_power8/info.txt index d02858bfc..df569edd5 100644 --- a/src/lib/block/aes/aes_power8/info.txt +++ b/src/lib/block/aes/aes_power8/info.txt @@ -7,5 +7,5 @@ ppc64 </arch> <isa> -ppccrypto +powercrypto </isa> |