diff options
| -rw-r--r-- | ydb/core/backup/common/encryption.cpp | 2 | ||||
| -rw-r--r-- | ydb/core/backup/common/encryption_ut.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/backup/common/encryption.cpp b/ydb/core/backup/common/encryption.cpp index c5b5665d517..ab41c87a60f 100644 --- a/ydb/core/backup/common/encryption.cpp +++ b/ydb/core/backup/common/encryption.cpp @@ -30,7 +30,7 @@ namespace { static constexpr size_t MAC_SIZE = 16; static constexpr size_t MAX_HEADER_SIZE = 16_KB; // Header does not contain much data -static constexpr size_t MAX_BLOCK_SIZE = 30_MB; // Max block size must always be at least size of table row (~8 MB) serialized into text csv format. +static constexpr size_t MAX_BLOCK_SIZE = 50_MB; // Max block size must always be at least size of table row (~8 MB) serialized into text csv format. // Real value is bound to 32 MB in TBackupTask.TScanSettings.BytesBatchSize setting. THashMap<TString, TString> AlgNames = { {"aes128gcm", "AES-128-GCM"}, diff --git a/ydb/core/backup/common/encryption_ut.cpp b/ydb/core/backup/common/encryption_ut.cpp index f66fb7ee52f..6f08ef980ae 100644 --- a/ydb/core/backup/common/encryption_ut.cpp +++ b/ydb/core/backup/common/encryption_ut.cpp @@ -269,7 +269,7 @@ Y_UNIT_TEST_SUITE(EncryptedFileSerializerTest) { size_t blockSizePos = fileData.Size() - 20 /* last block with MAC */ - 16 /* MAC */ - srcText.size() - 4 /* sizeof(size) */; UNIT_ASSERT_LT(blockSizePos, fileData.Size() - 4); uint32_t* size = reinterpret_cast<uint32_t*>(fileData.Data() + blockSizePos); - *size = htonl(50_MB); + *size = htonl(51_MB); fileData.Resize(fileData.Size() + 4); { TEncryptedFileDeserializer deserializer(Key32); |
