Skip to content

Commit ee50bbf

Browse files
author
Lotte Felius
authored
Update README.md
1 parent eb157f6 commit ee50bbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ SELECT generate_key(16) as key;
3232
will produce a 16-byte base64 encoded key.
3333

3434
### Encrypted Types
35-
In VCrypt, an encrypted value is represented as a `STRUCT` type internally. Because this is somewhat complex to define, we implemented `ENCRYPTED` types.
36-
Each encrypted type is prefixed by `E_`; for example, an encrypted `INTEGER` is represented as `E_INTEGER`.
35+
In VCrypt, an encrypted value is represented as a `STRUCT` type internally. The `STRUCT` consist of five different fields: `nonce_hi`, `nonce_lo`, `counter`, `cipher` and `value`. Together they contain all information to decrypt a batch and the corresponding value.
36+
37+
Because this is somewhat complex to define, we implemented `ENCRYPTED` types. Each encrypted type is prefixed by `E_`; for example, an encrypted `INTEGER` is represented as `E_INTEGER`.
3738

3839
All non-nested existing types in DuckDB are currently supported by VCrypt.
3940

0 commit comments

Comments
 (0)