proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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,
33
folly::MutableByteRange
out);
34
38
static
void
hash
(
const
folly::IOBuf
& in,
folly::MutableByteRange
out);
39
};
40
}
// namespace fizz
41
#include <
fizz/crypto/Sha-inl.h
>
folly::IOBuf
Definition:
IOBuf.h:221
OpenSSLHash.h
fizz::Sha::hmac
static void hmac(folly::ByteRange key, const folly::IOBuf &in, folly::MutableByteRange out)
Definition:
Sha-inl.h:14
IOBuf.h
Range.h
Sha-inl.h
fizz
Definition:
Actions.h:16
fizz::Sha::hash
static void hash(const folly::IOBuf &in, folly::MutableByteRange out)
Definition:
Sha-inl.h:23
folly::Range< const unsigned char * >
fizz::Sha
Definition:
Sha.h:26
proxygen
fizz
fizz
crypto
Sha.h
Generated by
1.8.11