15 #include <openssl/evp.h>
17 const EVP_CIPHER *EVP_sm4_cbc(void);
18 const EVP_CIPHER *EVP_sm4_ecb(void);
19 const EVP_CIPHER *EVP_sm4_cfb(void);
20 const EVP_CIPHER *EVP_sm4_cfb128(void);
21 const EVP_CIPHER *EVP_sm4_ofb(void);
22 const EVP_CIPHER *EVP_sm4_ctr(void);
26 The SM4 blockcipher (GB/T 32907-2016) for EVP.
28 All modes below use a key length of 128 bits and acts on blocks of 128 bits.
39 The SM4 blockcipher with a 128-bit key in CBC, ECB, CFB, OFB and CTR modes
46 Developers should be aware of the negative performance implications of
47 calling these functions multiple times and should consider using
48 L<EVP_CIPHER_fetch(3)> with L<EVP_CIPHER-SM4(7)> instead.
49 See L<crypto(7)/Performance> for further information.
53 These functions return a B<EVP_CIPHER> structure that contains the
54 implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
55 details of the B<EVP_CIPHER> structure.
60 L<EVP_EncryptInit(3)>,
61 L<EVP_CIPHER_meth_new(3)>
65 Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.
66 Copyright 2017 Ribose Inc. All Rights Reserved.
68 Licensed under the Apache License 2.0 (the "License"). You may not use
69 this file except in compliance with the License. You can obtain a copy
70 in the file LICENSE in the source distribution or at
71 L<https://www.openssl.org/source/license.html>.