2
0

curl_sha256.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef HEADER_CURL_SHA256_H
  2. #define HEADER_CURL_SHA256_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) Florin Petriuc, <petriuc.florin@gmail.com>
  11. * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  12. *
  13. * This software is licensed as described in the file COPYING, which
  14. * you should have received as part of this distribution. The terms
  15. * are also available at https://curl.se/docs/copyright.html.
  16. *
  17. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  18. * copies of the Software, and permit persons to whom the Software is
  19. * furnished to do so, under the terms of the COPYING file.
  20. *
  21. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  22. * KIND, either express or implied.
  23. *
  24. * SPDX-License-Identifier: curl
  25. *
  26. ***************************************************************************/
  27. #if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) \
  28. || defined(USE_LIBSSH2)
  29. #include <curl/curl.h>
  30. #include "curl_hmac.h"
  31. extern const struct HMAC_params Curl_HMAC_SHA256[1];
  32. #ifndef CURL_SHA256_DIGEST_LENGTH
  33. #define CURL_SHA256_DIGEST_LENGTH 32 /* fixed size */
  34. #endif
  35. CURLcode Curl_sha256it(unsigned char *outbuffer, const unsigned char *input,
  36. const size_t len);
  37. #endif
  38. #endif /* HEADER_CURL_SHA256_H */