AES_CBC is now supported for binlog encryption

AES_CBC can be used for binlog files encryption

The AES_CBC could leaves some not handled bytes in the buffer and those
need a special encoding (ECB and XOR)

This way the output buffer of the whole encoding with AES_CBC will have
same size as the input (AES_CTR does it without any other step)
This commit is contained in:
MassimilianoPinto
2016-11-29 11:09:11 +01:00
parent 440cf9ae7c
commit 241fa67cfc
2 changed files with 174 additions and 36 deletions

View File

@ -83,7 +83,8 @@ MXS_BEGIN_DECLS
enum blr_aes_mode
{
BLR_AES_CBC,
BLR_AES_CTR
BLR_AES_CTR,
BLR_AES_ECB
};
/* Default encryption alogorithm is AES_CTR */