diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-08-22 22:04:15 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-08-22 22:47:24 -0400 |
| commit | b62a8ca43ef34d9d1a6b1f36a644c89c26f3b35e (patch) | |
| tree | 372876b9dd36fd9df95ea0de3760e301221df2df /src/core/crypto/key_manager.h | |
| parent | 3ea3de4ecd9a03da23b9e823ecc454481a60c3b9 (diff) | |
key_manager: Make data arrays constexpr
We can convert these maps into constexpr arrays to eliminate some
runtime static constructors.
Diffstat (limited to 'src/core/crypto/key_manager.h')
| -rw-r--r-- | src/core/crypto/key_manager.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h index bdca3770a..321b75323 100644 --- a/src/core/crypto/key_manager.h +++ b/src/core/crypto/key_manager.h @@ -10,7 +10,6 @@ #include <string> #include <variant> -#include <boost/container/flat_map.hpp> #include <fmt/format.h> #include "common/common_funcs.h" #include "common/common_types.h" @@ -293,9 +292,6 @@ private: void SetKeyWrapped(S128KeyType id, Key128 key, u64 field1 = 0, u64 field2 = 0); void SetKeyWrapped(S256KeyType id, Key256 key, u64 field1 = 0, u64 field2 = 0); - - static const boost::container::flat_map<std::string, KeyIndex<S128KeyType>> s128_file_id; - static const boost::container::flat_map<std::string, KeyIndex<S256KeyType>> s256_file_id; }; Key128 GenerateKeyEncryptionKey(Key128 source, Key128 master, Key128 kek_seed, Key128 key_seed); |
