Skip to content

Commit

Permalink
fixing review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dutow committed Feb 20, 2024
1 parent ffff748 commit bb83dd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/encryption/enc_tde.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SetIVPrefix(ItemPointerData* ip, char* iv_prefix)
* start_offset: is the absolute location of start of data in the file.
* This function assumes that everything is in a single block, and has an assertion ensuring this
*/
void
static void
pg_tde_crypt_simple(const char* iv_prefix, uint32 start_offset, const char* data, uint32 data_len, char* out, RelKeyData* key, const char* context)
{
const uint64 aes_start_block = start_offset / AES_BLOCK_SIZE;
Expand Down Expand Up @@ -84,7 +84,7 @@ pg_tde_crypt_simple(const char* iv_prefix, uint32 start_offset, const char* data
* start_offset: is the absolute location of start of data in the file.
* This is a generic function indented for large data, that od not fit into a single block
*/
void
static void
pg_tde_crypt_complex(const char* iv_prefix, uint32 start_offset, const char* data, uint32 data_len, char* out, RelKeyData* key, const char* context)
{
const uint64 aes_start_block = start_offset / AES_BLOCK_SIZE;
Expand Down
6 changes: 1 addition & 5 deletions src/include/encryption/enc_tde.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
#include "keyring/keyring_api.h"

extern void
pg_tde_crypt_simple(const char* iv_prefix, uint32 start_offset, const char* data, uint32 data_len, char* out, RelKeyData* keys, const char* context);
extern void
pg_tde_crypt_complex(const char* iv_prefix, uint32 start_offset, const char* data, uint32 data_len, char* out, RelKeyData* keys, const char* context);
extern void
pg_tde_crypt(const char* iv_prefix, uint32 start_offset, const char* data, uint32 data_len, char* out, RelKeyData* keys, const char* context);
pg_tde_crypt(const char* iv_prefix, uint32 start_offset, const char* data, uint32 data_len, char* out, RelKeyData* key, const char* context);
extern void
pg_tde_crypt_tuple(HeapTuple tuple, HeapTuple out_tuple, RelKeyData* key, const char* context);

Expand Down

0 comments on commit bb83dd3

Please sign in to comment.