proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Types.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/record/Types.h
>
12
#include <
folly/Range.h
>
13
14
namespace
fizz
{
15
16
enum class
HashFunction
{
Sha256
,
Sha384
};
17
18
enum class
PskType
{
19
NotSupported
,
20
NotAttempted
,
21
Rejected
,
22
External
,
23
Resumption
24
};
25
29
enum class
EncryptionLevel
{
Plaintext
,
Handshake
,
EarlyData
,
AppTraffic
};
30
31
enum class
KeyExchangeType
{
None
,
OneRtt
,
HelloRetryRequest
};
32
33
enum class
EarlyDataType
{
NotAttempted
,
Attempted
,
Rejected
,
Accepted
};
34
35
HashFunction
getHashFunction
(
CipherSuite
cipher
);
36
size_t
getHashSize
(
HashFunction
hash);
37
38
folly::StringPiece
toString
(
HashFunction
hash);
39
folly::StringPiece
toString
(
PskType
pskType);
40
folly::StringPiece
toString
(
KeyExchangeType
kexType);
41
folly::StringPiece
toString
(
EarlyDataType
earlyDataType);
42
}
// namespace fizz
fizz::toString
folly::StringPiece toString(StateEnum state)
Definition:
State.cpp:16
Types.h
fizz::EarlyDataType
EarlyDataType
Definition:
Types.h:33
fizz::getHashSize
size_t getHashSize(HashFunction hash)
Definition:
Types.cpp:25
fizz::CipherSuite
CipherSuite
Definition:
Types.h:153
fizz::EncryptionLevel::AppTraffic
fizz::KeyExchangeType::None
fizz::PskType::NotSupported
cipher
CipherSuite cipher
Definition:
ClientProtocol.cpp:1006
fizz::KeyExchangeType::OneRtt
fizz::getHashFunction
HashFunction getHashFunction(CipherSuite cipher)
Definition:
Types.cpp:13
Range.h
fizz::HashFunction
HashFunction
Definition:
Types.h:16
fizz::EncryptionLevel
EncryptionLevel
Definition:
Types.h:29
fizz::EarlyDataType::Accepted
fizz::EncryptionLevel::Plaintext
fizz::EncryptionLevel::EarlyData
fizz
Definition:
Actions.h:16
fizz::EncryptionLevel::Handshake
folly::Range< const char * >
fizz::PskType::Rejected
fizz::PskType::Resumption
fizz::PskType
PskType
Definition:
Types.h:18
fizz::HelloRetryRequest
Definition:
Types.h:208
fizz::PskType::External
fizz::PskType::NotAttempted
fizz::Sha384
Definition:
Sha384.h:17
fizz::EarlyDataType::Attempted
fizz::HashFunction::Sha256
fizz::KeyExchangeType
KeyExchangeType
Definition:
Types.h:31
proxygen
fizz
fizz
protocol
Types.h
Generated by
1.8.11