proxygen
fizz::extensions::TokenBindingUtils Class Reference

#include <Utils.h>

Static Public Member Functions

static Buf constructMessage (const TokenBindingType &type, const TokenBindingKeyParameters &keyParams, const Buf &ekm)
 

Static Public Attributes

static constexpr uint8_t kP256EcKeySize = 64
 

Detailed Description

Definition at line 16 of file Utils.h.

Member Function Documentation

static Buf fizz::extensions::TokenBindingUtils::constructMessage ( const TokenBindingType type,
const TokenBindingKeyParameters keyParams,
const Buf ekm 
)
inlinestatic

Definition at line 20 of file Utils.h.

References folly::IOBuf::create(), fizz::extensions::kTokenBindingEkmSize, and fizz::detail::write().

23  {
24  Buf concatenatedBuf = folly::IOBuf::create(
26  sizeof(TokenBindingType));
27  folly::io::Appender appender(concatenatedBuf.get(), 20);
28 
29  detail::write(type, appender);
30  detail::write(keyParams, appender);
31  appender.push(ekm->coalesce());
32  return concatenatedBuf;
33  }
void write(const T &in, folly::io::Appender &appender)
Definition: Types-inl.h:112
static std::unique_ptr< IOBuf > create(std::size_t capacity)
Definition: IOBuf.cpp:229
PskType type
TokenBindingKeyParameters
Definition: Types.h:33
constexpr uint8_t kTokenBindingEkmSize
Definition: Types.h:18
std::unique_ptr< folly::IOBuf > Buf
Definition: Types.h:22

Member Data Documentation

constexpr uint8_t fizz::extensions::TokenBindingUtils::kP256EcKeySize = 64
static

Definition at line 18 of file Utils.h.


The documentation for this class was generated from the following file: