]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/EVP_sm4_cbc.pod
Fix: 'openssl ca' command crashes when used with 'rand_serial' option
[thirdparty/openssl.git] / doc / man3 / EVP_sm4_cbc.pod
CommitLineData
f19a5ff9
RT
1=pod
2
3=head1 NAME
4
5EVP_sm4_cbc,
6EVP_sm4_ecb,
7EVP_sm4_cfb,
8EVP_sm4_ofb,
9EVP_sm4_ctr
10- EVP SM4 cipher
11
12=head1 SYNOPSIS
13
f19a5ff9
RT
14 #include <openssl/evp.h>
15
21ebd2fc
PY
16 const EVP_CIPHER *EVP_sm4_cbc(void);
17 const EVP_CIPHER *EVP_sm4_ecb(void);
18 const EVP_CIPHER *EVP_sm4_cfb(void);
19 const EVP_CIPHER *EVP_sm4_ofb(void);
20 const EVP_CIPHER *EVP_sm4_ctr(void);
f19a5ff9
RT
21
22=head1 DESCRIPTION
23
24The SM4 blockcipher (GB/T 32907-2016) for EVP.
25
26All modes below use a key length of 128 bits and acts on blocks of 128 bits.
27
28=over 4
29
30=item EVP_sm4_cbc(),
31EVP_sm4_ecb(),
32EVP_sm4_cfb(),
33EVP_sm4_ofb(),
34EVP_sm4_ctr()
35
36The SM4 blockcipher with a 128-bit key in CBC, ECB, CFB, OFB and CTR modes
37respectively.
38
39=back
40
41=head1 RETURN VALUES
42
43These functions return a B<EVP_CIPHER> structure that contains the
44implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
45details of the B<EVP_CIPHER> structure.
46
47=head1 SEE ALSO
48
49L<evp(7)>,
50L<EVP_EncryptInit(3)>,
51L<EVP_CIPHER_meth_new(3)>
52
53=head1 COPYRIGHT
54
21ebd2fc 55Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
f19a5ff9
RT
56Copyright 2017 Ribose Inc. All Rights Reserved.
57
58Licensed under the OpenSSL license (the "License"). You may not use
59this file except in compliance with the License. You can obtain a copy
60in the file LICENSE in the source distribution or at
61L<https://www.openssl.org/source/license.html>.
62
63=cut
64