Skip to content

Commit d3c1c23

Browse files
author
ccfelius
committed
Support DATE for decryption
1 parent 38640e7 commit d3c1c23

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/core/functions/scalar/decrypt_vectorized.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ static void DecryptData(DataChunk &args, ExpressionState &state,
384384
counter_vec_u, cipher_vec_u, value_vec_u, result,
385385
lstate, *key, same_nonce, size);
386386
case LogicalTypeId::INTEGER:
387+
case LogicalTypeId::DATE:
387388
return DecryptDataFixedSize<int32_t>(nonce_hi_u.sel, nonce_lo_u.sel, nonce_hi_data, nonce_lo_data, FlatVector::Validity(result),
388389
counter_vec_u, cipher_vec_u, value_vec_u, result,
389390
lstate, *key, same_nonce, size);

src/include/vcrypt/core/functions/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "vcrypt/common.hpp"
33
#include "vcrypt/core/functions/function_data/encrypt_function_data.hpp"
44

5-
#define BATCH_SIZE 256
5+
#define BATCH_SIZE 128
66

77
namespace vcrypt {
88

src/include/vcrypt/core/module.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ struct CoreModule {
1010
public:
1111
static void Register(DatabaseInstance &db);
1212
static void RegisterType(DatabaseInstance &db);
13+
static void SetBatchSize(uint32_t batch_size);
1314
};
1415

1516
} // namespace core

src/vcrypt_extension.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ static void LoadInternal(DatabaseInstance &instance) {
4141

4242
void VcryptExtension::Load(DuckDB &db) {
4343
LoadInternal(*db.instance); }
44+
4445
std::string VcryptExtension::Name() { return "vcrypt"; }
4546

4647
std::string VcryptExtension::Version() const {

0 commit comments

Comments
 (0)