EVP_rc5_32_12_16_cbc.pod 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. =pod
  2. =head1 NAME
  3. EVP_rc5_32_12_16_cbc,
  4. EVP_rc5_32_12_16_cfb,
  5. EVP_rc5_32_12_16_cfb64,
  6. EVP_rc5_32_12_16_ecb,
  7. EVP_rc5_32_12_16_ofb
  8. - EVP RC5 cipher
  9. =head1 SYNOPSIS
  10. #include <openssl/evp.h>
  11. const EVP_CIPHER *EVP_rc5_32_12_16_cbc(void);
  12. const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void);
  13. const EVP_CIPHER *EVP_rc5_32_12_16_cfb64(void);
  14. const EVP_CIPHER *EVP_rc5_32_12_16_ecb(void);
  15. const EVP_CIPHER *EVP_rc5_32_12_16_ofb(void);
  16. =head1 DESCRIPTION
  17. The RC5 encryption algorithm for EVP.
  18. =over 4
  19. =item EVP_rc5_32_12_16_cbc(),
  20. EVP_rc5_32_12_16_cfb(),
  21. EVP_rc5_32_12_16_cfb64(),
  22. EVP_rc5_32_12_16_ecb(),
  23. EVP_rc5_32_12_16_ofb()
  24. RC5 encryption algorithm in CBC, CFB, ECB and OFB modes respectively. This is a
  25. variable key length cipher with an additional "number of rounds" parameter. By
  26. default the key length is set to 128 bits and 12 rounds. Alternative key lengths
  27. can be set using L<EVP_CIPHER_CTX_set_key_length(3)>. The maximum key length is
  28. 2040 bits.
  29. The following rc5 specific I<ctrl>s are supported (see
  30. L<EVP_CIPHER_CTX_ctrl(3)>).
  31. =over 4
  32. =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_SET_RC5_ROUNDS, rounds, NULL)
  33. Sets the number of rounds to B<rounds>. This must be one of RC5_8_ROUNDS,
  34. RC5_12_ROUNDS or RC5_16_ROUNDS.
  35. =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GET_RC5_ROUNDS, 0, &rounds)
  36. Stores the number of rounds currently configured in B<*rounds> where B<*rounds>
  37. is an int.
  38. =back
  39. =back
  40. =head1 RETURN VALUES
  41. These functions return an B<EVP_CIPHER> structure that contains the
  42. implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
  43. details of the B<EVP_CIPHER> structure.
  44. =head1 SEE ALSO
  45. L<evp(7)>,
  46. L<EVP_EncryptInit(3)>,
  47. L<EVP_CIPHER_meth_new(3)>
  48. =head1 COPYRIGHT
  49. Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
  50. Licensed under the Apache License 2.0 (the "License"). You may not use
  51. this file except in compliance with the License. You can obtain a copy
  52. in the file LICENSE in the source distribution or at
  53. L<https://www.openssl.org/source/license.html>.
  54. =cut