diff options
| author | Per Larsson <[email protected]> | 2022-02-07 15:46:51 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-02-07 15:46:51 +0100 |
| commit | 4b3d9873def5e974fd47a5360a3eff4095aab88b (patch) | |
| tree | 23196dba05475cbec6bb6141e08390fcd44d6961 /zenserver/auth/authmgr.h | |
| parent | Replaced crypto transform abstraction with a concrete API. (diff) | |
| download | zen-4b3d9873def5e974fd47a5360a3eff4095aab88b.tar.xz zen-4b3d9873def5e974fd47a5360a3eff4095aab88b.zip | |
Refactored auth manager to use simplified encryption API.
Diffstat (limited to 'zenserver/auth/authmgr.h')
| -rw-r--r-- | zenserver/auth/authmgr.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/zenserver/auth/authmgr.h b/zenserver/auth/authmgr.h index a641b9c8f..0354bdbfa 100644 --- a/zenserver/auth/authmgr.h +++ b/zenserver/auth/authmgr.h @@ -1,5 +1,6 @@ // Copyright Epic Games, Inc. All Rights Reserved. +#include <zencore/crypto.h> #include <zencore/iobuffer.h> #include <zencore/string.h> @@ -9,19 +10,12 @@ namespace zen { -struct AuthEncryptionKey -{ - IoBuffer Key; - IoBuffer IV; - - static AuthEncryptionKey Default(); -}; - struct AuthConfig { std::filesystem::path RootDirectory; std::chrono::seconds UpdateInterval{30}; - AuthEncryptionKey EncryptionKey; + AesKey256Bit EncryptionKey; + AesIV128Bit EncryptionIV; }; class AuthMgr |