proxygen
Sha384.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 Sha384 : Sha<Sha384> {
18  static constexpr size_t HashLen = 48;
19 
20  static constexpr auto HashEngine = EVP_sha384;
21 
22  static constexpr folly::StringPiece BlankHash{
23  "\x38\xb0\x60\xa7\x51\xac\x96\x38\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a\x21\xfd\xb7\x11\x14\xbe\x07\x43\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda\x27\x4e\xde\xbf\xe7\x6f\x65\xfb\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b"};
24 };
25 } // namespace fizz
static constexpr auto HashEngine
Definition: Sha384.h:20
static constexpr size_t HashLen
Definition: Sha384.h:18
Definition: Actions.h:16
static constexpr folly::StringPiece BlankHash
Definition: Sha384.h:22
Definition: Sha.h:26