forked from alibaba/AliSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencryption_state.cpp
More file actions
34 lines (25 loc) · 1.25 KB
/
encryption_state.cpp
File metadata and controls
34 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "duckdb/common/encryption_state.hpp"
namespace duckdb {
EncryptionState::EncryptionState(const std::string *key) {
// abstract class, no implementation needed
}
EncryptionState::~EncryptionState() {
}
void EncryptionState::InitializeEncryption(duckdb::const_data_ptr_t iv, duckdb::idx_t iv_len, const std::string *key) {
throw NotImplementedException("EncryptionState Abstract Class is called");
}
void EncryptionState::InitializeDecryption(duckdb::const_data_ptr_t iv, duckdb::idx_t iv_len, const std::string *key) {
throw NotImplementedException("EncryptionState Abstract Class is called");
}
size_t EncryptionState::Process(duckdb::const_data_ptr_t in, duckdb::idx_t in_len, duckdb::data_ptr_t out,
duckdb::idx_t out_len) {
throw NotImplementedException("EncryptionState Abstract Class is called");
}
size_t EncryptionState::Finalize(duckdb::data_ptr_t out, duckdb::idx_t out_len, duckdb::data_ptr_t tag,
duckdb::idx_t tag_len) {
throw NotImplementedException("EncryptionState Abstract Class is called");
}
void EncryptionState::GenerateRandomData(duckdb::data_ptr_t data, duckdb::idx_t len) {
throw NotImplementedException("EncryptionState Abstract Class is called");
}
} // namespace duckdb