#1 2020-10-26 15:48:05

ariel.alvarez
Member
Registered: 2020-10-19
Posts: 1

AES Encrypt Big Files (5GB+)

Hi,

I am trying to AES encrypt big files (5GB+) using SynCrypto. Preferably the operation mode should not be ECB, but that would be optional in my specific scenario.

SimpleEncrypt seems to load whole file into memory so it's limited by the amount of memory available.

TAESFull doesn't support files bigger than 4294967296 bytes (inLen is a Cardinal). The modifications that has to be made to support bigger files are not so trivial.

Probably I can do something to directly call TAESAbstractSyn.Encrypt functions to encrypt in chunks, but it seems not so easy if I want a chaining mode other than ECB; and even with ECB I will have to deal with padding.

It seems the best I can do is splitting the file in serveral 4GB files and encrypt all chunks with aesfull format.

Is there anything that I am missing that I can do to AES encrypt a big file without loading whole file in memory?

Thanks in advance

Ariel

Offline

#2 2020-10-26 16:02:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: AES Encrypt Big Files (5GB+)

There is indeed currently a size limitation.

Offline

Board footer

Powered by FluxBB