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_sha3_224,
      6      1.1  christos EVP_sha3_256,
      7      1.1  christos EVP_sha3_384,
      8      1.1  christos EVP_sha3_512,
      9      1.1  christos EVP_shake128,
     10      1.1  christos EVP_shake256
     11      1.1  christos - SHA-3 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_sha3_224(void);
     18      1.1  christos  const EVP_MD *EVP_sha3_256(void);
     19      1.1  christos  const EVP_MD *EVP_sha3_384(void);
     20      1.1  christos  const EVP_MD *EVP_sha3_512(void);
     21      1.1  christos 
     22      1.1  christos  const EVP_MD *EVP_shake128(void);
     23      1.1  christos  const EVP_MD *EVP_shake256(void);
     24      1.1  christos 
     25      1.1  christos =head1 DESCRIPTION
     26      1.1  christos 
     27      1.1  christos SHA-3 (Secure Hash Algorithm 3) is a family of cryptographic hash functions
     28      1.1  christos standardized in NIST FIPS 202, first published in 2015. It is based on the
     29      1.1  christos Keccak algorithm.
     30      1.1  christos 
     31      1.1  christos =over 4
     32      1.1  christos 
     33      1.1  christos =item EVP_sha3_224(),
     34      1.1  christos EVP_sha3_256(),
     35      1.1  christos EVP_sha3_384(),
     36      1.1  christos EVP_sha3_512()
     37      1.1  christos 
     38      1.1  christos The SHA-3 SHA-3-224, SHA-3-256, SHA-3-384, and SHA-3-512 algorithms
     39      1.1  christos respectively. They produce 224, 256, 384 and 512 bits of output from a given
     40      1.1  christos input.
     41      1.1  christos 
     42      1.1  christos =item EVP_shake128(),
     43      1.1  christos EVP_shake256()
     44      1.1  christos 
     45      1.1  christos The SHAKE-128 and SHAKE-256 Extendable Output Functions (XOF) that can generate
     46      1.1  christos a variable hash length.
     47      1.1  christos 
     48      1.1  christos Specifically, B<EVP_shake128> provides an overall security of 128 bits, while
     49      1.1  christos B<EVP_shake256> provides that of 256 bits.
     50      1.1  christos 
     51      1.1  christos =back
     52      1.1  christos 
     53  1.1.1.3  christos =head1 NOTES
     54  1.1.1.3  christos 
     55  1.1.1.3  christos Developers should be aware of the negative performance implications of
     56  1.1.1.3  christos calling these functions multiple times and should consider using
     57  1.1.1.4  christos L<EVP_MD_fetch(3)> with L<EVP_MD-SHA3(7)> or L<EVP_MD-SHAKE(7)> instead.
     58  1.1.1.3  christos See L<crypto(7)/Performance> for further information.
     59      1.1  christos 
     60      1.1  christos =head1 RETURN VALUES
     61      1.1  christos 
     62      1.1  christos These functions return a B<EVP_MD> structure that contains the
     63  1.1.1.2  christos implementation of the message digest. See L<EVP_MD_meth_new(3)> for
     64      1.1  christos details of the B<EVP_MD> structure.
     65      1.1  christos 
     66      1.1  christos =head1 CONFORMING TO
     67      1.1  christos 
     68      1.1  christos NIST FIPS 202.
     69      1.1  christos 
     70      1.1  christos =head1 SEE ALSO
     71      1.1  christos 
     72      1.1  christos L<evp(7)>,
     73      1.1  christos L<EVP_DigestInit(3)>
     74      1.1  christos 
     75      1.1  christos =head1 COPYRIGHT
     76      1.1  christos 
     77  1.1.1.3  christos Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.
     78      1.1  christos 
     79  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     80      1.1  christos this file except in compliance with the License.  You can obtain a copy
     81      1.1  christos in the file LICENSE in the source distribution or at
     82      1.1  christos L<https://www.openssl.org/source/license.html>.
     83      1.1  christos 
     84      1.1  christos =cut
     85      1.1  christos 
     86