Alexey Luchko writes:
> I'm new to openssl.
> I've got two questions on EVP API:
>
> 1. What do EVP_EncryptInit_ex and EVP_CipherInit_ex differ with?
> When should I use encrypt/decrypt and when cipher?
If you look at the source, EVP_EncryptInit_ex/EVP_DecryptInit_ex are
just trivial wrappers around EVP_CipherInit_ex. So use whichever seems
to make more sense to you.
> 2. Where can I read about cipher modes?
> There are several modes for each cipher on
>http://openssl.org/docs/crypto/EVP_EncryptInit.html#CIPHER%20LISTING
> They differ with suffix like _cbc, _ecb, _cfb, _ofb and etc.
> What are meanings of these suffixes and use-cases?
They're standard chaining modes. wikipedia has a reasonable description
of them.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager majord...@openssl.org