Openssl aes256 file encryption

I would like to encrypt the file using aes256 using OpenSSL with C. I found a pretty nice example here .

Should I first read the entire file into the memory buffer, not aes256, or should I make it partial with ~ 16K buffer?

Any snippets or hints?

+5
source share
2 answers

Uploading the entire file to the clipboard may not be possible for large files - do this only if all your files are below a certain limit.

OpenSSL EVP API ( ) EVP_EncryptUpdate, , . ( ). ( .)

, , ( ), OpenPGP (RFC 4880). , - , - , (PGP GnuPG) .

+7

, , , , .

:-) ( ), ( ) ( ) .

Crypto-wise , AES - 128 (16 ). , 16 . . 4 16 , , , .

+5

All Articles