proxygen
TokenBindingConstructor.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 
13 
14 namespace fizz {
15 namespace extensions {
16 
18  public:
20  EVP_PKEY& keyPair,
21  const Buf& ekm,
22  TokenBindingKeyParameters negotiatedParameters,
24 
25  private:
26  static Buf encodeEcKey(const folly::ssl::EcKeyUniquePtr& ecKey);
27 
29  const folly::ssl::EcdsaSigUniquePtr& signature);
30 
31  static Buf signWithEcKey(
32  const folly::ssl::EcKeyUniquePtr& key,
33  const Buf& message);
34 
35  static void addBignumToSignature(const Buf& signature, BIGNUM* bigNum);
36 };
37 } // namespace extensions
38 } // namespace fizz
Definition: test.c:42
PskType type
TokenBindingKeyParameters
Definition: Types.h:33
static Buf encodeEcdsaSignature(const folly::ssl::EcdsaSigUniquePtr &signature)
std::unique_ptr< ECDSA_SIG, EcdsaSigDeleter > EcdsaSigUniquePtr
static TokenBinding createTokenBinding(EVP_PKEY &keyPair, const Buf &ekm, TokenBindingKeyParameters negotiatedParameters, TokenBindingType type)
static void addBignumToSignature(const Buf &signature, BIGNUM *bigNum)
static Buf signWithEcKey(const folly::ssl::EcKeyUniquePtr &key, const Buf &message)
std::unique_ptr< EC_KEY, EcKeyDeleter > EcKeyUniquePtr
Definition: Actions.h:16
std::unique_ptr< folly::IOBuf > Buf
Definition: Types.h:22
static Buf encodeEcKey(const folly::ssl::EcKeyUniquePtr &ecKey)