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?
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, , . ( ). ( .)
EVP_EncryptUpdate
, , ( ), OpenPGP (RFC 4880). , - , - , (PGP GnuPG) .
, , , , .
:-) ( ), ( ) ( ) .
Crypto-wise , AES - 128 (16 ). , 16 . . 4 16 , , , .