tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

crypto_hash_sha2.h (519B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef crypto_hash_sha2_h
      6 #define crypto_hash_sha2_h
      7 
      8 #include <stdint.h>
      9 #include <stddef.h>
     10 
     11 extern "C" {
     12 // 32 bytes will be written to `output` so it must point at a buffer
     13 // at least that big.
     14 void crypto_hash_sha256(const uint8_t* input, size_t length, uint8_t* output);
     15 };
     16 
     17 #endif  // crypto_hash_sha2_h