EVP_sm4_cbc.pod 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. =pod
  2. =head1 NAME
  3. EVP_sm4_cbc,
  4. EVP_sm4_ecb,
  5. EVP_sm4_cfb,
  6. EVP_sm4_cfb128,
  7. EVP_sm4_ofb,
  8. EVP_sm4_ctr
  9. - EVP SM4 cipher
  10. =head1 SYNOPSIS
  11. #include <openssl/evp.h>
  12. const EVP_CIPHER *EVP_sm4_cbc(void);
  13. const EVP_CIPHER *EVP_sm4_ecb(void);
  14. const EVP_CIPHER *EVP_sm4_cfb(void);
  15. const EVP_CIPHER *EVP_sm4_cfb128(void);
  16. const EVP_CIPHER *EVP_sm4_ofb(void);
  17. const EVP_CIPHER *EVP_sm4_ctr(void);
  18. =head1 DESCRIPTION
  19. The SM4 blockcipher (GB/T 32907-2016) for EVP.
  20. All modes below use a key length of 128 bits and acts on blocks of 128 bits.
  21. =over 4
  22. =item EVP_sm4_cbc(),
  23. EVP_sm4_ecb(),
  24. EVP_sm4_cfb(),
  25. EVP_sm4_cfb128(),
  26. EVP_sm4_ofb(),
  27. EVP_sm4_ctr()
  28. The SM4 blockcipher with a 128-bit key in CBC, ECB, CFB, OFB and CTR modes
  29. respectively.
  30. =back
  31. =head1 RETURN VALUES
  32. These functions return a B<EVP_CIPHER> structure that contains the
  33. implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
  34. details of the B<EVP_CIPHER> structure.
  35. =head1 SEE ALSO
  36. L<evp(7)>,
  37. L<EVP_EncryptInit(3)>,
  38. L<EVP_CIPHER_meth_new(3)>
  39. =head1 COPYRIGHT
  40. Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
  41. Copyright 2017 Ribose Inc. All Rights Reserved.
  42. Licensed under the Apache License 2.0 (the "License"). You may not use
  43. this file except in compliance with the License. You can obtain a copy
  44. in the file LICENSE in the source distribution or at
  45. L<https://www.openssl.org/source/license.html>.
  46. =cut