Skip to content

Commit

Permalink
Fix README and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfelius committed Dec 16, 2024
1 parent 8bde687 commit b581962
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set(EXTENSION_SOURCES
src/core/types.cpp
src/core/functions/scalar/encrypt.cpp
src/core/functions/scalar/encrypt_to_etype.cpp
src/core/functions/scalar/encrypt_vectorized.cpp
src/core/functions/function_data/encrypt_function_data.cpp
src/core/functions/cast/varchar_cast.cpp
src/core/functions/table/encrypt_table.cpp
Expand Down
4 changes: 2 additions & 2 deletions test/sql/encryption/bulk_encryption.test
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ statement ok
ALTER TABLE test_1 ADD COLUMN decrypted_values INTEGER;

statement ok
UPDATE test_1 SET encrypted_values = encrypt(value, 'key_1', 'random_message');
UPDATE test_1 SET encrypted_values = encrypt(value, 'key_1');

statement ok
UPDATE test_1 SET decrypted_values = decrypt(encrypted_values, 'key_1', 'random_message');
UPDATE test_1 SET decrypted_values = decrypt(encrypted_values, 'key_1');

query I
SELECT decrypted_values FROM test_1 LIMIT 10;
Expand Down
3 changes: 0 additions & 3 deletions test/sql/encryption/string_encryption.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ CREATE SECRET key_1 (
LENGTH 16
);

#statement ok
#SELECT encrypt('testtest', 'key_1', 'random_message');

statement ok
CREATE TABLE rd_data AS
SELECT
Expand Down
4 changes: 2 additions & 2 deletions test/sql/encryption/vectorized_encryption_simple.test
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ statement ok
ALTER TABLE test_1 ADD COLUMN decrypted_values INTEGER;

statement ok
UPDATE test_1 SET encrypted_values = encrypt(value, 'key_1', 'random_message');
UPDATE test_1 SET encrypted_values = encrypt_vectorized(value, 'key_1');

statement ok
UPDATE test_1 SET decrypted_values = decrypt(encrypted_values, 'key_1', 'random_message');
UPDATE test_1 SET decrypted_values = decrypt_vectorized(encrypted_values, 'key_1');

query I
SELECT decrypted_values FROM test_1 LIMIT 10;
Expand Down

0 comments on commit b581962

Please sign in to comment.