Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 94f6948
  • /
  • EVP_CIPHER-SM4.pod
Raw File
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:a446fafb6d4b18c587f6e7f89bb3956dc42659ec
directory badge Iframe embedding
swh:1:dir:94f6948c85482cc6d1fd27802764aeba2a2fe9fb
EVP_CIPHER-SM4.pod
=pod

=head1 NAME

EVP_CIPHER-SM4 - The SM4 EVP_CIPHER implementations

=head1 DESCRIPTION

Support for SM4 symmetric encryption using the B<EVP_CIPHER> API.

=head2 Algorithm Names

The following algorithms are available in the default provider:

=over 4

=item "SM4-CBC:SM4"

=item "SM4-ECB"

=item "SM4-CTR"

=item "SM4-OFB" or "SM4-OFB128"

=item "SM4-CFB" or "SM4-CFB128"

=item "SM4-GCM"

=item "SM4-CCM"

=item "SM4-XTS"

=back

=head2 Parameters

This implementation supports the parameters described in
L<EVP_EncryptInit(3)/PARAMETERS>.

=head1 NOTES

The SM4-XTS implementation allows streaming to be performed, but each
L<EVP_EncryptUpdate(3)> or L<EVP_DecryptUpdate(3)> call requires each input
to be a multiple of the blocksize. Only the final EVP_EncryptUpdate() or
EVP_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.

=head1 SEE ALSO

L<provider-cipher(7)>, L<OSSL_PROVIDER-default(7)>

=head1 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
L<https://www.openssl.org/source/license.html>.

=cut

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top