diff options
| author | miod <> | 2014-07-10 13:08:58 +0000 |
|---|---|---|
| committer | miod <> | 2014-07-10 13:08:58 +0000 |
| commit | f88d8ec08184c59fa3fe173d7ed4f7ab743ec1d0 (patch) | |
| tree | 4b65e7dddebc9f3ed56aeb299478c2f0029aabfd /src/lib/libcrypto/doc/EVP_EncryptInit.pod | |
| parent | 01835c580bc891d6c335f7dbe03b98ad207ba4ac (diff) | |
| download | openbsd-f88d8ec08184c59fa3fe173d7ed4f7ab743ec1d0.tar.gz openbsd-f88d8ec08184c59fa3fe173d7ed4f7ab743ec1d0.tar.bz2 openbsd-f88d8ec08184c59fa3fe173d7ed4f7ab743ec1d0.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.pod | 16 |
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>. | |||
| 101 | EVP_EncryptInit_ex() sets up cipher context B<ctx> for encryption | 101 | EVP_EncryptInit_ex() sets up cipher context B<ctx> for encryption |
| 102 | with cipher B<type> from ENGINE B<impl>. B<ctx> must be initialized | 102 | with cipher B<type> from ENGINE B<impl>. B<ctx> must be initialized |
| 103 | before calling this function. B<type> is normally supplied | 103 | before calling this function. B<type> is normally supplied |
| 104 | by a function such as EVP_des_cbc(). If B<impl> is NULL then the | 104 | by a function such as EVP_aes_256_cbc(). If B<impl> is NULL then the |
| 105 | default implementation is used. B<key> is the symmetric key to use | 105 | default implementation is used. B<key> is the symmetric key to use |
| 106 | and B<iv> is the IV to use (if necessary), the actual number of bytes | 106 | and B<iv> is the IV to use (if necessary), the actual number of bytes |
| 107 | used for the key and IV depends on the cipher. It is possible to set | 107 | 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. | |||
| 279 | 279 | ||
| 280 | =over 4 | 280 | =over 4 |
| 281 | 281 | ||
| 282 | =item EVP_enc_null() | 282 | =item EVP_enc_null(void) |
| 283 | 283 | ||
| 284 | Null cipher: does nothing. | 284 | Null 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 | |||
| 288 | 128-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 | |||
| 292 | 192-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 | |||
| 296 | 256-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 | ||
| 288 | DES in CBC, ECB, CFB and OFB modes respectively. | 300 | DES in CBC, ECB, CFB and OFB modes respectively. |
