From 324d92fa7f658d01382ff72c596358f190772369 Mon Sep 17 00:00:00 2001 From: miod <> Date: Thu, 10 Jul 2014 13:08:58 +0000 Subject: Attempt to (incompletely) document EVP_aes_*(). When EVP_des_cbc() was suggested, suggest EVP_aes_256_cbc() instead. Remove mention of EVP_des_ede3_cbc() being the algorithm of choice for S/MIME. Don't mention US-export limited RC2 algorithms, you'd better not know about them. --- src/lib/libcrypto/doc/EVP_EncryptInit.pod | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/doc/EVP_EncryptInit.pod') diff --git a/src/lib/libcrypto/doc/EVP_EncryptInit.pod b/src/lib/libcrypto/doc/EVP_EncryptInit.pod index d42445cf10..a876ac789c 100644 --- a/src/lib/libcrypto/doc/EVP_EncryptInit.pod +++ b/src/lib/libcrypto/doc/EVP_EncryptInit.pod @@ -101,7 +101,7 @@ EVP_CIPHER_CTX_init() initializes cipher contex B. EVP_EncryptInit_ex() sets up cipher context B for encryption with cipher B from ENGINE B. B must be initialized before calling this function. B is normally supplied -by a function such as EVP_des_cbc(). If B is NULL then the +by a function such as EVP_aes_256_cbc(). If B is NULL then the default implementation is used. B is the symmetric key to use and B is the IV to use (if necessary), the actual number of bytes used for the key and IV depends on the cipher. It is possible to set @@ -279,10 +279,22 @@ All algorithms have a fixed key length unless otherwise stated. =over 4 -=item EVP_enc_null() +=item EVP_enc_null(void) Null cipher: does nothing. +=item EVP_aes_128_cbc(void), EVP_aes_128_ecb(void), EVP_aes_128_cfb(void), EVP_aes_128_ofb(void) + +128-bit AES in CBC, ECB, CFB and OFB modes respectively. + +=item EVP_aes_192_cbc(void), EVP_aes_192_ecb(void), EVP_aes_192_cfb(void), EVP_aes_192_ofb(void) + +192-bit AES in CBC, ECB, CFB and OFB modes respectively. + +=item EVP_aes_256_cbc(void), EVP_aes_256_ecb(void), EVP_aes_256_cfb(void), EVP_aes_256_ofb(void) + +256-bit AES in CBC, ECB, CFB and OFB modes respectively. + =item EVP_des_cbc(void), EVP_des_ecb(void), EVP_des_cfb(void), EVP_des_ofb(void) DES in CBC, ECB, CFB and OFB modes respectively. -- cgit v1.2.3-55-g6feb