mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-12 11:41:50 +00:00
refactor: cryptography component
This commit is contained in:
21
src/Cryptography/IStreamCipher.h
Normal file
21
src/Cryptography/IStreamCipher.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace cryptography
|
||||
{
|
||||
class IStreamCipher
|
||||
{
|
||||
public:
|
||||
IStreamCipher() = default;
|
||||
virtual ~IStreamCipher() = default;
|
||||
IStreamCipher(const IStreamCipher& other) = default;
|
||||
IStreamCipher(IStreamCipher&& other) noexcept = default;
|
||||
IStreamCipher& operator=(const IStreamCipher& other) = default;
|
||||
IStreamCipher& operator=(IStreamCipher&& other) noexcept = default;
|
||||
|
||||
virtual void SetIv(const uint8_t* iv, size_t ivSize) = 0;
|
||||
virtual void Process(const void* plainText, void* cipherText, size_t amount) = 0;
|
||||
};
|
||||
} // namespace cryptography
|
||||
Reference in New Issue
Block a user