proxygen
AESGCM256.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 <openssl/evp.h>
12 
13 namespace fizz {
14 
15 struct AESGCM256 {
16  static constexpr auto Cipher = EVP_aes_256_gcm;
17 
18  static const size_t kKeyLength{32};
19  static const size_t kIVLength{12};
20  static const size_t kTagLength{16};
21  static const bool kOperatesInBlocks{false};
22  static const bool kRequiresPresetTagLen{false};
23 };
24 
25 } // namespace fizz
static const size_t kKeyLength
Definition: AESGCM256.h:18
static constexpr auto Cipher
Definition: AESGCM256.h:16
static const size_t kTagLength
Definition: AESGCM256.h:20
Definition: Actions.h:16
static const bool kOperatesInBlocks
Definition: AESGCM256.h:21
static const size_t kIVLength
Definition: AESGCM256.h:19
static const bool kRequiresPresetTagLen
Definition: AESGCM256.h:22