aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/aes_ni
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-08-29 11:53:06 -0400
committerJack Lloyd <[email protected]>2015-08-29 11:53:06 -0400
commit3103f299dfd9517a4ef3c40358c1a4cad38b7305 (patch)
treed3cb4309c78cfc0948315970ca3c827bc356c1ef /src/lib/block/aes_ni
parente4962bebbc687e93e47d35339b6a2242aefee51e (diff)
Reverse the algorithm priority ordering
Previously 0 was the highest priority and 255 was the lowest. But this is really quite confusing, instead treat 0 as lowest and 255 as highest so normal integer intuitions apply.
Diffstat (limited to 'src/lib/block/aes_ni')
-rw-r--r--src/lib/block/aes_ni/aes_ni.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/block/aes_ni/aes_ni.cpp b/src/lib/block/aes_ni/aes_ni.cpp
index 20aa63c54..29e729da4 100644
--- a/src/lib/block/aes_ni/aes_ni.cpp
+++ b/src/lib/block/aes_ni/aes_ni.cpp
@@ -12,9 +12,9 @@
namespace Botan {
-BOTAN_REGISTER_BLOCK_CIPHER_NOARGS_IF(CPUID::has_aes_ni(), AES_128_NI, "AES-128", "aes_ni", 16);
-BOTAN_REGISTER_BLOCK_CIPHER_NOARGS_IF(CPUID::has_aes_ni(), AES_192_NI, "AES-192", "aes_ni", 16);
-BOTAN_REGISTER_BLOCK_CIPHER_NOARGS_IF(CPUID::has_aes_ni(), AES_256_NI, "AES-256", "aes_ni", 16);
+BOTAN_REGISTER_BLOCK_CIPHER_NOARGS_IF(CPUID::has_aes_ni(), AES_128_NI, "AES-128", "aes_ni", 200);
+BOTAN_REGISTER_BLOCK_CIPHER_NOARGS_IF(CPUID::has_aes_ni(), AES_192_NI, "AES-192", "aes_ni", 200);
+BOTAN_REGISTER_BLOCK_CIPHER_NOARGS_IF(CPUID::has_aes_ni(), AES_256_NI, "AES-256", "aes_ni", 200);
namespace {