1e71b7053SJung-uk Kim=pod 2e71b7053SJung-uk Kim 3e71b7053SJung-uk Kim=head1 NAME 4e71b7053SJung-uk Kim 5e71b7053SJung-uk KimEVP_sm3 6e71b7053SJung-uk Kim- SM3 for EVP 7e71b7053SJung-uk Kim 8e71b7053SJung-uk Kim=head1 SYNOPSIS 9e71b7053SJung-uk Kim 10e71b7053SJung-uk Kim #include <openssl/evp.h> 11e71b7053SJung-uk Kim 12e71b7053SJung-uk Kim const EVP_MD *EVP_sm3(void); 13e71b7053SJung-uk Kim 14e71b7053SJung-uk Kim=head1 DESCRIPTION 15e71b7053SJung-uk Kim 16e71b7053SJung-uk KimSM3 is a cryptographic hash function with a 256-bit output, defined in GB/T 17e71b7053SJung-uk Kim32905-2016. 18e71b7053SJung-uk Kim 19e71b7053SJung-uk Kim=over 4 20e71b7053SJung-uk Kim 21e71b7053SJung-uk Kim=item EVP_sm3() 22e71b7053SJung-uk Kim 23e71b7053SJung-uk KimThe SM3 hash function. 24e71b7053SJung-uk Kim 25e71b7053SJung-uk Kim=back 26e71b7053SJung-uk Kim 27b077aed3SPierre Pronchery=head1 NOTES 28b077aed3SPierre Pronchery 29b077aed3SPierre ProncheryDevelopers should be aware of the negative performance implications of 30b077aed3SPierre Proncherycalling this function multiple times and should consider using 31*ad991e4cSEd MasteL<EVP_MD_fetch(3)> with L<EVP_MD-SM3(7)> instead. 32b077aed3SPierre ProncherySee L<crypto(7)/Performance> for further information. 33e71b7053SJung-uk Kim 34e71b7053SJung-uk Kim=head1 RETURN VALUES 35e71b7053SJung-uk Kim 36e71b7053SJung-uk KimThese functions return a B<EVP_MD> structure that contains the 37b077aed3SPierre Proncheryimplementation of the message digest. See L<EVP_MD_meth_new(3)> for 38e71b7053SJung-uk Kimdetails of the B<EVP_MD> structure. 39e71b7053SJung-uk Kim 40e71b7053SJung-uk Kim=head1 CONFORMING TO 41e71b7053SJung-uk Kim 42e71b7053SJung-uk KimGB/T 32905-2016 and GM/T 0004-2012. 43e71b7053SJung-uk Kim 44e71b7053SJung-uk Kim=head1 SEE ALSO 45e71b7053SJung-uk Kim 46e71b7053SJung-uk KimL<evp(7)>, 47e71b7053SJung-uk KimL<EVP_DigestInit(3)> 48e71b7053SJung-uk Kim 49e71b7053SJung-uk Kim=head1 COPYRIGHT 50e71b7053SJung-uk Kim 51b077aed3SPierre ProncheryCopyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved. 52e71b7053SJung-uk KimCopyright 2017 Ribose Inc. All Rights Reserved. 53e71b7053SJung-uk Kim 54b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License"). You may not use 55e71b7053SJung-uk Kimthis file except in compliance with the License. You can obtain a copy 56e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at 57e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>. 58e71b7053SJung-uk Kim 59e71b7053SJung-uk Kim=cut 60e71b7053SJung-uk Kim 61