aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/passhash
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-12-22 12:22:09 -0500
committerJack Lloyd <[email protected]>2020-12-22 12:22:09 -0500
commitd6db412b2ac982996d81fcfa6c8f131a1bdac4f9 (patch)
tree836aee16a6769a68f650296dac976acc78e3b0a3 /src/lib/passhash
parent60adce9f6b754e9ea3444e115621b6c5cfe12df3 (diff)
Align some more tables
The bcrypt tables aren't lookup tables but aligning them makes the loads within Blowfish a bit faster.
Diffstat (limited to 'src/lib/passhash')
-rw-r--r--src/lib/passhash/bcrypt/bcrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/passhash/bcrypt/bcrypt.cpp b/src/lib/passhash/bcrypt/bcrypt.cpp
index e16f9935b..2649165f1 100644
--- a/src/lib/passhash/bcrypt/bcrypt.cpp
+++ b/src/lib/passhash/bcrypt/bcrypt.cpp
@@ -101,7 +101,7 @@ std::string make_bcrypt(const std::string& pass,
BOTAN_ARG_CHECK(work_factor >= 4 && work_factor <= 18,
"Invalid bcrypt work factor");
- static const uint8_t BCRYPT_MAGIC[8*3] = {
+ alignas(64) static const uint8_t BCRYPT_MAGIC[8*3] = {
0x4F, 0x72, 0x70, 0x68, 0x65, 0x61, 0x6E, 0x42,
0x65, 0x68, 0x6F, 0x6C, 0x64, 0x65, 0x72, 0x53,
0x63, 0x72, 0x79, 0x44, 0x6F, 0x75, 0x62, 0x74