VirtualBox

source: vbox/trunk/src/libs/curl-7.87.0/lib/curl_sha256.h@ 98341

最後變更 在這個檔案從98341是 98326,由 vboxsync 提交於 2 年 前

curl-7.87.0: Applied and adjusted our curl changes to 7.83.1. bugref:10356

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.7 KB
 
1#ifndef HEADER_CURL_SHA256_H
2#define HEADER_CURL_SHA256_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 2017, Florin Petriuc, <[email protected]>
11 * Copyright (C) 2018 - 2022, Daniel Stenberg, <[email protected]>, 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
28#ifndef CURL_DISABLE_CRYPTO_AUTH
29#include <curl/curl.h>
30#include "curl_hmac.h"
31
32extern const struct HMAC_params Curl_HMAC_SHA256[1];
33
34#ifdef USE_WOLFSSL
35/* SHA256_DIGEST_LENGTH is an enum value in wolfSSL. Need to import it from
36 * sha.h */
37#include <wolfssl/options.h>
38#include <wolfssl/openssl/sha.h>
39#else
40#define SHA256_DIGEST_LENGTH 32
41#endif
42
43CURLcode Curl_sha256it(unsigned char *outbuffer, const unsigned char *input,
44 const size_t len);
45
46#endif
47
48#endif /* HEADER_CURL_SHA256_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette