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 AESGCM128 { 16 static constexpr auto Cipher = EVP_aes_128_gcm; 17 18 static const size_t kKeyLength{16}; 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 26