proxygen
fizz::ChaCha20Poly1305 Struct Reference

#include <ChaCha20Poly1305.h>

Static Public Member Functions

static const EVP_CIPHER * Cipher ()
 

Static Public Attributes

static const size_t kKeyLength {32}
 
static const size_t kIVLength {12}
 
static const size_t kTagLength {16}
 
static const bool kOperatesInBlocks {false}
 
static const bool kRequiresPresetTagLen {false}
 

Detailed Description

Definition at line 16 of file ChaCha20Poly1305.h.

Member Function Documentation

static const EVP_CIPHER* fizz::ChaCha20Poly1305::Cipher ( )
inlinestatic

Definition at line 17 of file ChaCha20Poly1305.h.

17  {
18 #if FOLLY_OPENSSL_IS_110
19  return EVP_chacha20_poly1305();
20 #else
21  throw std::runtime_error(
22  "chacha20-poly1305 support requires OpenSSL 1.1.0");
23 #endif // FOLLY_OPENSSL_IS_110
24  }

Member Data Documentation

const size_t fizz::ChaCha20Poly1305::kIVLength {12}
static

Definition at line 27 of file ChaCha20Poly1305.h.

const size_t fizz::ChaCha20Poly1305::kKeyLength {32}
static

Definition at line 26 of file ChaCha20Poly1305.h.

const bool fizz::ChaCha20Poly1305::kOperatesInBlocks {false}
static

Definition at line 29 of file ChaCha20Poly1305.h.

const bool fizz::ChaCha20Poly1305::kRequiresPresetTagLen {false}
static

Definition at line 30 of file ChaCha20Poly1305.h.

const size_t fizz::ChaCha20Poly1305::kTagLength {16}
static

Definition at line 28 of file ChaCha20Poly1305.h.


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