$NetBSD: EVP_CIPHER-SM4.7,v 1.5 2026/04/08 17:06:43 christos Exp $ -*- mode: troff; coding: utf-8 -*- Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) Standard preamble: ========================================================================..
..
..
\*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.. ds C` ""
. ds C' ""
'br\}
. ds C`
. ds C'
'br\}
Escape single quotes in literal strings from groff's Unicode transform. If the F register is >0, we'll generate index entries on stderr for titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index entries marked with X<> in POD. Of course, you'll have to process the output yourself in some meaningful fashion. Avoid warning from groff about undefined register 'F'...
.nr rF 0
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
Required to disable full justification in groff 1.23.0. ======================================================================== Title "EVP_CIPHER-SM4 7" EVP_CIPHER-SM4 7 2026-04-07 3.5.6 OpenSSL
For nroff, turn off justification. Always turn off hyphenation; it makes way too many mistakes in technical documents..nh
NAME
EVP_CIPHER-SM4 - The SM4 EVP_CIPHER implementations
DESCRIPTION
Header "DESCRIPTION" Support for SM4 symmetric encryption using the
EVP_CIPHER API.
"Algorithm Names"
Subsection "Algorithm Names" The following algorithms are available in the default provider:
"""SM4-CBC:SM4""" 4
Item """SM4-CBC:SM4""" 0
"""SM4-ECB""" 4
Item """SM4-ECB""" """SM4-CTR""" 4
Item """SM4-CTR""" """SM4-OFB"" or ""SM4-OFB128""" 4
Item """SM4-OFB"" or ""SM4-OFB128""" """SM4-CFB"" or ""SM4-CFB128""" 4
Item """SM4-CFB"" or ""SM4-CFB128""" """SM4-GCM""" 4
Item """SM4-GCM""" """SM4-CCM""" 4
Item """SM4-CCM""" """SM4-XTS""" 4
Item """SM4-XTS"""
Parameters
Subsection "Parameters" This implementation supports the parameters described in
"PARAMETERS" in
EVP_EncryptInit\|(3).
NOTES
Header "NOTES" The SM4-XTS implementation allows streaming to be performed, but each
\fBEVP_EncryptUpdate\|(3) or
EVP_DecryptUpdate\|(3) call requires each input
to be a multiple of the blocksize. Only the final
EVP_EncryptUpdate() or
\fBEVP_DecryptUpdate() call can optionally have an input that is not a multiple
of the blocksize but is larger than one block. In that case ciphertext
stealing (CTS) is used to fill the block.
"SEE ALSO"
Header "SEE ALSO" \fBprovider-cipher\|(7),
OSSL_PROVIDER-default\|(7)
COPYRIGHT
Header "COPYRIGHT" Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use
this file except in compliance with the License. You can obtain a copy
in the file LICENSE in the source distribution or at
<https://www.openssl.org/source/license.html>.