Ronald Tse | 8fa4d95 | 2017-10-21 11:59:09 +0900 | [diff] [blame] | 1 | =pod |
| 2 | |
| 3 | =head1 NAME |
| 4 | |
| 5 | EVP_rc4, |
| 6 | EVP_rc4_40, |
| 7 | EVP_rc4_hmac_md5 |
| 8 | - EVP RC4 stream cipher |
| 9 | |
| 10 | =head1 SYNOPSIS |
| 11 | |
| 12 | #include <openssl/evp.h> |
| 13 | |
| 14 | const EVP_CIPHER *EVP_rc4(void) |
| 15 | const EVP_CIPHER *EVP_rc4_40(void) |
| 16 | const EVP_CIPHER *EVP_rc4_hmac_md5(void) |
| 17 | |
| 18 | =head1 DESCRIPTION |
| 19 | |
| 20 | The RC4 stream cipher for EVP. |
| 21 | |
| 22 | =over 4 |
| 23 | |
| 24 | =item EVP_rc4() |
| 25 | |
| 26 | RC4 stream cipher. This is a variable key length cipher with a default key |
| 27 | length of 128 bits. |
| 28 | |
| 29 | =item EVP_rc4_40() |
| 30 | |
| 31 | RC4 stream cipher with 40 bit key length. |
| 32 | |
| 33 | WARNING: this function is obsolete. Its usage should be replaced with the |
| 34 | EVP_rc4() and the EVP_CIPHER_CTX_set_key_length() functions. |
| 35 | |
| 36 | =item EVP_rc4_hmac_md5() |
| 37 | |
| 38 | Authenticated encryption with the RC4 stream cipher with MD5 as HMAC. |
| 39 | |
| 40 | WARNING: this is not intended for usage outside of TLS and requires calling of |
| 41 | some undocumented ctrl functions. These ciphers do not conform to the EVP AEAD |
| 42 | interface. |
| 43 | |
| 44 | =back |
| 45 | |
| 46 | =head1 RETURN VALUES |
| 47 | |
| 48 | These functions return an B<EVP_CIPHER> structure that contains the |
| 49 | implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for |
| 50 | details of the B<EVP_CIPHER> structure. |
| 51 | |
| 52 | =head1 SEE ALSO |
| 53 | |
| 54 | L<evp(7)>, |
| 55 | L<EVP_EncryptInit(3)>, |
| 56 | L<EVP_CIPHER_meth_new(3)> |
| 57 | |
| 58 | =head1 COPYRIGHT |
| 59 | |
| 60 | Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. |
| 61 | |
| 62 | Licensed under the OpenSSL license (the "License"). You may not use |
| 63 | this file except in compliance with the License. You can obtain a copy |
| 64 | in the file LICENSE in the source distribution or at |
| 65 | L<https://www.openssl.org/source/license.html>. |
| 66 | |
| 67 | =cut |
| 68 | |