proxygen
Sha.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 <folly/Range.h>
12 #include <folly/io/IOBuf.h>
13 #include <folly/ssl/OpenSSLHash.h>
14 
15 namespace fizz {
16 
25 template <typename T>
26 struct Sha {
30  static void hmac(
31  folly::ByteRange key,
32  const folly::IOBuf& in,
34 
38  static void hash(const folly::IOBuf& in, folly::MutableByteRange out);
39 };
40 } // namespace fizz
41 #include <fizz/crypto/Sha-inl.h>
static void hmac(folly::ByteRange key, const folly::IOBuf &in, folly::MutableByteRange out)
Definition: Sha-inl.h:14
Definition: Actions.h:16
static void hash(const folly::IOBuf &in, folly::MutableByteRange out)
Definition: Sha-inl.h:23
Definition: Sha.h:26