EVP_sm4_cbc.pod 1.3 KB

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