proxygen
LoggingKeyScheduler.cpp
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 
10 
11 namespace fizz {
12 
13 std::vector<uint8_t> LoggingKeyScheduler::getSecret(
15  folly::ByteRange transcript) const {
16  std::vector<uint8_t> secret = KeyScheduler::getSecret(s, transcript);
17  switch (s) {
20  break;
21  default:
22  break;
23  }
24  return secret;
25 }
26 
27 std::vector<uint8_t> LoggingKeyScheduler::getSecret(
29  folly::ByteRange transcript) const {
30  std::vector<uint8_t> secret = KeyScheduler::getSecret(s, transcript);
31  switch (s) {
34  break;
37  break;
38  }
39  return secret;
40 }
41 
42 std::vector<uint8_t> LoggingKeyScheduler::getSecret(AppTrafficSecrets s) const {
43  std::vector<uint8_t> secret = KeyScheduler::getSecret(s);
44  switch (s) {
47  break;
50  break;
51  }
52  return secret;
53 }
54 
55 } // namespace fizz
AppTrafficSecrets
Definition: KeyScheduler.h:28
std::vector< uint8_t > clientTrafficSecret_
virtual std::vector< uint8_t > getSecret(EarlySecrets s, folly::ByteRange transcript) const
std::vector< uint8_t > clientEarlyTrafficSecret_
std::vector< uint8_t > clientHandshakeTrafficSecret_
std::vector< uint8_t > serverTrafficSecret_
EarlySecrets
Definition: KeyScheduler.h:17
Definition: Actions.h:16
HandshakeSecrets
Definition: KeyScheduler.h:24
std::vector< uint8_t > getSecret(EarlySecrets s, folly::ByteRange transcript) const override
static set< string > s
static constexpr StringPiece secret
std::vector< uint8_t > serverHandshakeTrafficSecret_