Besides using the same cipher (session) key, you also need to use the same
initialization vector.  Note: in practice, the initialization is a random
number that should not be reused.
- Steve
> Hi all
>
> I have a requirement to encrypt files, in such a way identical files
> should generate identical ciphertexts.
>
> I plan to use aes-256-cbc cipher with 128-byte long non-guessable password
> per input file. Identical input files will be provided with identical
> passwords.
>
> 1. Is it no salt the way forward for me?
>
> 2. How many rounds are recommended for EVP_BytesToKey() in my case?
>
> Many thanks in advance.
>
> Best regards
> Unga
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
>
>


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to