EVP_rc4.pod 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. =pod
  2. =head1 NAME
  3. EVP_rc4,
  4. EVP_rc4_40,
  5. EVP_rc4_hmac_md5
  6. - EVP RC4 stream cipher
  7. =head1 SYNOPSIS
  8. #include <openssl/evp.h>
  9. const EVP_CIPHER *EVP_rc4(void);
  10. const EVP_CIPHER *EVP_rc4_40(void);
  11. const EVP_CIPHER *EVP_rc4_hmac_md5(void);
  12. =head1 DESCRIPTION
  13. The RC4 stream cipher for EVP.
  14. =over 4
  15. =item EVP_rc4()
  16. RC4 stream cipher. This is a variable key length cipher with a default key
  17. length of 128 bits.
  18. =item EVP_rc4_40()
  19. RC4 stream cipher with 40 bit key length.
  20. WARNING: this function is obsolete. Its usage should be replaced with the
  21. EVP_rc4() and the EVP_CIPHER_CTX_set_key_length() functions.
  22. =item EVP_rc4_hmac_md5()
  23. Authenticated encryption with the RC4 stream cipher with MD5 as HMAC.
  24. WARNING: this is not intended for usage outside of TLS and requires calling of
  25. some undocumented ctrl functions. These ciphers do not conform to the EVP AEAD
  26. interface.
  27. =back
  28. =head1 NOTES
  29. Developers should be aware of the negative performance implications of
  30. calling these functions multiple times and should consider using
  31. L<EVP_CIPHER_fetch(3)> with L<EVP_CIPHER-RC4(7)> instead.
  32. See L<crypto(7)/Performance> for further information.
  33. =head1 RETURN VALUES
  34. These functions return an B<EVP_CIPHER> structure that contains the
  35. implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
  36. details of the B<EVP_CIPHER> structure.
  37. =head1 SEE ALSO
  38. L<evp(7)>,
  39. L<EVP_EncryptInit(3)>,
  40. L<EVP_CIPHER_meth_new(3)>
  41. =head1 COPYRIGHT
  42. Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.
  43. Licensed under the Apache License 2.0 (the "License"). You may not use
  44. this file except in compliance with the License. You can obtain a copy
  45. in the file LICENSE in the source distribution or at
  46. L<https://www.openssl.org/source/license.html>.
  47. =cut