c++ - Encrypt with AES without header -
i'm trying encrypt 16kib block aes.
i tried openssl, size grew 16384 16416. looks openssl put 32b header.
is there way "remove" 32b header? if matters, environment redhat 5.11.
edit: tried command line tools of openssl: encryption:
openssl aes-256-cbc -in text.txt -out encrypted.txt
decryption:
openssl aes-256-cbc -d -in encrypted.txt -out decrypted.txt
also - need tool can use c++.
no, did not put header. did padding.
the aes
block cipher 128 bit block size requires length of data being enciphered cipher block size. padding used recover original data stream length after deciphering.
edit:
according @jww openssl lib prepends stream 16byte header containing magic 8-byte string "salted__" , and iv, derived password
Comments
Post a Comment