Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos EVP_sha224,
      6      1.1  christos EVP_sha256,
      7      1.1  christos EVP_sha512_224,
      8      1.1  christos EVP_sha512_256,
      9      1.1  christos EVP_sha384,
     10      1.1  christos EVP_sha512
     11      1.1  christos - SHA-2 For EVP
     12      1.1  christos 
     13      1.1  christos =head1 SYNOPSIS
     14      1.1  christos 
     15      1.1  christos  #include <openssl/evp.h>
     16      1.1  christos 
     17      1.1  christos  const EVP_MD *EVP_sha224(void);
     18      1.1  christos  const EVP_MD *EVP_sha256(void);
     19      1.1  christos  const EVP_MD *EVP_sha512_224(void);
     20      1.1  christos  const EVP_MD *EVP_sha512_256(void);
     21      1.1  christos  const EVP_MD *EVP_sha384(void);
     22      1.1  christos  const EVP_MD *EVP_sha512(void);
     23      1.1  christos 
     24      1.1  christos =head1 DESCRIPTION
     25      1.1  christos 
     26      1.1  christos SHA-2 (Secure Hash Algorithm 2) is a family of cryptographic hash functions
     27      1.1  christos standardized in NIST FIPS 180-4, first published in 2001.
     28      1.1  christos 
     29      1.1  christos =over 4
     30      1.1  christos 
     31      1.1  christos =item EVP_sha224(),
     32      1.1  christos EVP_sha256(),
     33      1.1  christos EVP_sha512_224,
     34      1.1  christos EVP_sha512_256,
     35      1.1  christos EVP_sha384(),
     36      1.1  christos EVP_sha512()
     37      1.1  christos 
     38      1.1  christos The SHA-2 SHA-224, SHA-256, SHA-512/224, SHA512/256, SHA-384 and SHA-512
     39      1.1  christos algorithms, which generate 224, 256, 224, 256, 384 and 512 bits
     40      1.1  christos respectively of output from a given input.
     41      1.1  christos 
     42      1.1  christos The two algorithms: SHA-512/224 and SHA512/256 are truncated forms of the
     43      1.1  christos SHA-512 algorithm. They are distinct from SHA-224 and SHA-256 even though
     44      1.1  christos their outputs are of the same size.
     45      1.1  christos 
     46      1.1  christos =back
     47      1.1  christos 
     48  1.1.1.3  christos =head1 NOTES
     49  1.1.1.3  christos 
     50  1.1.1.3  christos Developers should be aware of the negative performance implications of
     51  1.1.1.3  christos calling these functions multiple times and should consider using
     52  1.1.1.4  christos L<EVP_MD_fetch(3)> with L<EVP_MD-SHA2(7)>instead.
     53  1.1.1.3  christos See L<crypto(7)/Performance> for further information.
     54      1.1  christos 
     55      1.1  christos =head1 RETURN VALUES
     56      1.1  christos 
     57      1.1  christos These functions return a B<EVP_MD> structure that contains the
     58  1.1.1.2  christos implementation of the message digest. See L<EVP_MD_meth_new(3)> for
     59      1.1  christos details of the B<EVP_MD> structure.
     60      1.1  christos 
     61      1.1  christos =head1 CONFORMING TO
     62      1.1  christos 
     63      1.1  christos NIST FIPS 180-4.
     64      1.1  christos 
     65      1.1  christos =head1 SEE ALSO
     66      1.1  christos 
     67      1.1  christos L<evp(7)>,
     68      1.1  christos L<EVP_DigestInit(3)>
     69      1.1  christos 
     70      1.1  christos =head1 COPYRIGHT
     71      1.1  christos 
     72  1.1.1.3  christos Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.
     73      1.1  christos 
     74  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     75      1.1  christos this file except in compliance with the License.  You can obtain a copy
     76      1.1  christos in the file LICENSE in the source distribution or at
     77      1.1  christos L<https://www.openssl.org/source/license.html>.
     78      1.1  christos 
     79      1.1  christos =cut
     80      1.1  christos 
     81