From b62a8ca43ef34d9d1a6b1f36a644c89c26f3b35e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 22 Aug 2020 22:04:15 -0400 Subject: key_manager: Make data arrays constexpr We can convert these maps into constexpr arrays to eliminate some runtime static constructors. --- src/core/crypto/key_manager.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/core/crypto/key_manager.h') 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 #include -#include #include #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> s128_file_id; - static const boost::container::flat_map> s256_file_id; }; Key128 GenerateKeyEncryptionKey(Key128 source, Key128 master, Key128 kek_seed, Key128 key_seed); -- cgit v1.2.3