EVP_sha224.pod 1.8 KB

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