1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos EVP_blake2b512, 6 1.1 christos EVP_blake2s256 7 1.1 christos - BLAKE2 For EVP 8 1.1 christos 9 1.1 christos =head1 SYNOPSIS 10 1.1 christos 11 1.1 christos #include <openssl/evp.h> 12 1.1 christos 13 1.1 christos const EVP_MD *EVP_blake2b512(void); 14 1.1 christos const EVP_MD *EVP_blake2s256(void); 15 1.1 christos 16 1.1 christos =head1 DESCRIPTION 17 1.1 christos 18 1.1 christos BLAKE2 is an improved version of BLAKE, which was submitted to the NIST SHA-3 19 1.1 christos algorithm competition. The BLAKE2s and BLAKE2b algorithms are described in 20 1.1 christos RFC 7693. 21 1.1 christos 22 1.1 christos =over 4 23 1.1 christos 24 1.1 christos =item EVP_blake2s256() 25 1.1 christos 26 1.1 christos The BLAKE2s algorithm that produces a 256-bit output from a given input. 27 1.1 christos 28 1.1 christos =item EVP_blake2b512() 29 1.1 christos 30 1.1 christos The BLAKE2b algorithm that produces a 512-bit output from a given input. 31 1.1 christos 32 1.1 christos =back 33 1.1 christos 34 1.1.1.3 christos =head1 NOTES 35 1.1.1.3 christos 36 1.1.1.3 christos Developers should be aware of the negative performance implications of 37 1.1.1.3 christos calling these functions multiple times and should consider using 38 1.1.1.4 christos L<EVP_MD_fetch(3)> with L<EVP_MD-BLAKE2(7)> instead. 39 1.1.1.3 christos See L<crypto(7)/Performance> for further information. 40 1.1.1.3 christos 41 1.1.1.3 christos While the BLAKE2b and BLAKE2s algorithms supports a variable length digest, 42 1.1.1.3 christos this implementation outputs a digest of a fixed length (the maximum length 43 1.1.1.3 christos supported), which is 512-bits for BLAKE2b and 256-bits for BLAKE2s. 44 1.1.1.3 christos 45 1.1 christos =head1 RETURN VALUES 46 1.1 christos 47 1.1 christos These functions return a B<EVP_MD> structure that contains the 48 1.1.1.2 christos implementation of the message digest. See L<EVP_MD_meth_new(3)> for 49 1.1 christos details of the B<EVP_MD> structure. 50 1.1 christos 51 1.1 christos =head1 CONFORMING TO 52 1.1 christos 53 1.1 christos RFC 7693. 54 1.1 christos 55 1.1 christos =head1 SEE ALSO 56 1.1 christos 57 1.1 christos L<evp(7)>, 58 1.1 christos L<EVP_DigestInit(3)> 59 1.1 christos 60 1.1 christos =head1 COPYRIGHT 61 1.1 christos 62 1.1.1.3 christos Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved. 63 1.1 christos 64 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 65 1.1 christos this file except in compliance with the License. You can obtain a copy 66 1.1 christos in the file LICENSE in the source distribution or at 67 1.1 christos L<https://www.openssl.org/source/license.html>. 68 1.1 christos 69 1.1 christos =cut 70 1.1 christos 71