diff options
| author | Per Larsson <[email protected]> | 2022-02-03 16:05:34 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-02-03 16:05:34 +0100 |
| commit | 18cc57792422a56bddc5797ceaa80dfe57e009b2 (patch) | |
| tree | 697c01ba75337e251a8e17bb5241fb81f99b85da /zencore/include | |
| parent | Minor cleanup of free functions. (diff) | |
| download | zen-18cc57792422a56bddc5797ceaa80dfe57e009b2.tar.xz zen-18cc57792422a56bddc5797ceaa80dfe57e009b2.zip | |
Enable encryption on all platforms.
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/crypto.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/zencore/include/zencore/crypto.h b/zencore/include/zencore/crypto.h index 4d6ddba47..44783cdeb 100644 --- a/zencore/include/zencore/crypto.h +++ b/zencore/include/zencore/crypto.h @@ -33,17 +33,11 @@ public: virtual MemoryView Encrypt(MemoryView Data, MutableMemoryView EncryptionBuffer) = 0; virtual MemoryView Decrypt(MemoryView Data, MutableMemoryView DecryptionBuffer) = 0; -}; -std::unique_ptr<SymmetricCipher> MakeNullCipher(); + static std::unique_ptr<SymmetricCipher> CreateNoOp(); -#if ZEN_PLATFORM_WINDOWS -/** - * Create a new instance of a 256 bit AES CBC symmetric cipher. - * NOTE: Currenlty only tested on Windows - */ -std::unique_ptr<SymmetricCipher> MakeAesCipher(); -#endif + static std::unique_ptr<SymmetricCipher> CreateAes(); +}; void crypto_forcelink(); |