summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/doc/EVP_EncryptInit.pod
diff options
context:
space:
mode:
authormiod <>2014-07-10 13:08:58 +0000
committermiod <>2014-07-10 13:08:58 +0000
commit324d92fa7f658d01382ff72c596358f190772369 (patch)
tree4b65e7dddebc9f3ed56aeb299478c2f0029aabfd /src/lib/libcrypto/doc/EVP_EncryptInit.pod
parenta21d4e83af767763bc6679d7872bb1a74a952d84 (diff)
downloadopenbsd-324d92fa7f658d01382ff72c596358f190772369.tar.gz
openbsd-324d92fa7f658d01382ff72c596358f190772369.tar.bz2
openbsd-324d92fa7f658d01382ff72c596358f190772369.zip
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.
Diffstat (limited to 'src/lib/libcrypto/doc/EVP_EncryptInit.pod')
-rw-r--r--src/lib/libcrypto/doc/EVP_EncryptInit.pod16
1 files changed, 14 insertions, 2 deletions
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<ctx>.
101EVP_EncryptInit_ex() sets up cipher context B<ctx> for encryption 101EVP_EncryptInit_ex() sets up cipher context B<ctx> for encryption
102with cipher B<type> from ENGINE B<impl>. B<ctx> must be initialized 102with cipher B<type> from ENGINE B<impl>. B<ctx> must be initialized
103before calling this function. B<type> is normally supplied 103before calling this function. B<type> is normally supplied
104by a function such as EVP_des_cbc(). If B<impl> is NULL then the 104by a function such as EVP_aes_256_cbc(). If B<impl> is NULL then the
105default implementation is used. B<key> is the symmetric key to use 105default implementation is used. B<key> is the symmetric key to use
106and B<iv> is the IV to use (if necessary), the actual number of bytes 106and B<iv> is the IV to use (if necessary), the actual number of bytes
107used for the key and IV depends on the cipher. It is possible to set 107used 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.
279 279
280=over 4 280=over 4
281 281
282=item EVP_enc_null() 282=item EVP_enc_null(void)
283 283
284Null cipher: does nothing. 284Null cipher: does nothing.
285 285
286=item EVP_aes_128_cbc(void), EVP_aes_128_ecb(void), EVP_aes_128_cfb(void), EVP_aes_128_ofb(void)
287
288128-bit AES in CBC, ECB, CFB and OFB modes respectively.
289
290=item EVP_aes_192_cbc(void), EVP_aes_192_ecb(void), EVP_aes_192_cfb(void), EVP_aes_192_ofb(void)
291
292192-bit AES in CBC, ECB, CFB and OFB modes respectively.
293
294=item EVP_aes_256_cbc(void), EVP_aes_256_ecb(void), EVP_aes_256_cfb(void), EVP_aes_256_ofb(void)
295
296256-bit AES in CBC, ECB, CFB and OFB modes respectively.
297
286=item EVP_des_cbc(void), EVP_des_ecb(void), EVP_des_cfb(void), EVP_des_ofb(void) 298=item EVP_des_cbc(void), EVP_des_ecb(void), EVP_des_cfb(void), EVP_des_ofb(void)
287 299
288DES in CBC, ECB, CFB and OFB modes respectively. 300DES in CBC, ECB, CFB and OFB modes respectively.