proxygen
Sha256.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #pragma once
10 
11 #include <fizz/crypto/Sha.h>
12 #include <openssl/evp.h>
13 #include <array>
14 
15 namespace fizz {
16 
17 struct Sha256 : Sha<Sha256> {
18  static constexpr size_t HashLen = 32;
19 
20  static constexpr auto HashEngine = EVP_sha256;
21 
22  static constexpr folly::StringPiece BlankHash{
23  "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24\x27\xae\x41\xe4\x64\x9b\x93\x4c\xa4\x95\x99\x1b\x78\x52\xb8\x55"};
24 };
25 } // namespace fizz
static constexpr auto HashEngine
Definition: Sha256.h:20
Definition: Actions.h:16
Definition: Sha.h:26
static constexpr size_t HashLen
Definition: Sha256.h:18
static constexpr folly::StringPiece BlankHash
Definition: Sha256.h:22