xref: /freebsd/crypto/openssl/doc/man3/EVP_sm4_cbc.pod (revision e71b70530d95c4f34d8bdbd78d1242df1ba4a945)
1*e71b7053SJung-uk Kim=pod
2*e71b7053SJung-uk Kim
3*e71b7053SJung-uk Kim=head1 NAME
4*e71b7053SJung-uk Kim
5*e71b7053SJung-uk KimEVP_sm4_cbc,
6*e71b7053SJung-uk KimEVP_sm4_ecb,
7*e71b7053SJung-uk KimEVP_sm4_cfb,
8*e71b7053SJung-uk KimEVP_sm4_ofb,
9*e71b7053SJung-uk KimEVP_sm4_ctr
10*e71b7053SJung-uk Kim- EVP SM4 cipher
11*e71b7053SJung-uk Kim
12*e71b7053SJung-uk Kim=head1 SYNOPSIS
13*e71b7053SJung-uk Kim
14*e71b7053SJung-uk Kim #include <openssl/evp.h>
15*e71b7053SJung-uk Kim
16*e71b7053SJung-uk Kim const EVP_CIPHER *EVP_sm4_cbc(void);
17*e71b7053SJung-uk Kim const EVP_CIPHER *EVP_sm4_ecb(void);
18*e71b7053SJung-uk Kim const EVP_CIPHER *EVP_sm4_cfb(void);
19*e71b7053SJung-uk Kim const EVP_CIPHER *EVP_sm4_ofb(void);
20*e71b7053SJung-uk Kim const EVP_CIPHER *EVP_sm4_ctr(void);
21*e71b7053SJung-uk Kim
22*e71b7053SJung-uk Kim=head1 DESCRIPTION
23*e71b7053SJung-uk Kim
24*e71b7053SJung-uk KimThe SM4 blockcipher (GB/T 32907-2016) for EVP.
25*e71b7053SJung-uk Kim
26*e71b7053SJung-uk KimAll modes below use a key length of 128 bits and acts on blocks of 128 bits.
27*e71b7053SJung-uk Kim
28*e71b7053SJung-uk Kim=over 4
29*e71b7053SJung-uk Kim
30*e71b7053SJung-uk Kim=item EVP_sm4_cbc(),
31*e71b7053SJung-uk KimEVP_sm4_ecb(),
32*e71b7053SJung-uk KimEVP_sm4_cfb(),
33*e71b7053SJung-uk KimEVP_sm4_ofb(),
34*e71b7053SJung-uk KimEVP_sm4_ctr()
35*e71b7053SJung-uk Kim
36*e71b7053SJung-uk KimThe SM4 blockcipher with a 128-bit key in CBC, ECB, CFB, OFB and CTR modes
37*e71b7053SJung-uk Kimrespectively.
38*e71b7053SJung-uk Kim
39*e71b7053SJung-uk Kim=back
40*e71b7053SJung-uk Kim
41*e71b7053SJung-uk Kim=head1 RETURN VALUES
42*e71b7053SJung-uk Kim
43*e71b7053SJung-uk KimThese functions return a B<EVP_CIPHER> structure that contains the
44*e71b7053SJung-uk Kimimplementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
45*e71b7053SJung-uk Kimdetails of the B<EVP_CIPHER> structure.
46*e71b7053SJung-uk Kim
47*e71b7053SJung-uk Kim=head1 SEE ALSO
48*e71b7053SJung-uk Kim
49*e71b7053SJung-uk KimL<evp(7)>,
50*e71b7053SJung-uk KimL<EVP_EncryptInit(3)>,
51*e71b7053SJung-uk KimL<EVP_CIPHER_meth_new(3)>
52*e71b7053SJung-uk Kim
53*e71b7053SJung-uk Kim=head1 COPYRIGHT
54*e71b7053SJung-uk Kim
55*e71b7053SJung-uk KimCopyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
56*e71b7053SJung-uk KimCopyright 2017 Ribose Inc. All Rights Reserved.
57*e71b7053SJung-uk Kim
58*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License").  You may not use
59*e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
60*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
61*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
62*e71b7053SJung-uk Kim
63*e71b7053SJung-uk Kim=cut
64*e71b7053SJung-uk Kim
65