mirror of https://github.com/postgres/postgres
Instead of having the WAL key code include the headers for the SMGR keys we move the shared code into a separate header file. Additionally we clean up some minor header issues.pull/238/head
parent
cff0bf5ad3
commit
b2bb77c0ef
@ -0,0 +1,19 @@ |
||||
#ifndef PG_TDE_KEYS_COMMON_H |
||||
#define PG_TDE_KEYS_COMMON_H |
||||
|
||||
#include "catalog/tde_principal_key.h" |
||||
|
||||
#define INTERNAL_KEY_LEN 16 |
||||
#define INTERNAL_KEY_IV_LEN 16 |
||||
|
||||
#define MAP_ENTRY_IV_SIZE 16 |
||||
#define MAP_ENTRY_AEAD_TAG_SIZE 16 |
||||
|
||||
typedef struct |
||||
{ |
||||
TDEPrincipalKeyInfo data; |
||||
unsigned char sign_iv[MAP_ENTRY_IV_SIZE]; |
||||
unsigned char aead_tag[MAP_ENTRY_AEAD_TAG_SIZE]; |
||||
} TDESignedPrincipalKeyInfo; |
||||
|
||||
#endif /* PG_TDE_KEYS_COMMON_H */ |
Loading…
Reference in new issue