diff --git a/fizz/BUCK b/fizz/BUCK deleted file mode 100644 index 762de8a9f43..00000000000 --- a/fizz/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "config", - headers = select({ - "DEFAULT": {"fizz-config.h": "facebook/fizz-config-fbcode.h"}, - "ovr_config//toolchain/fb:arista": {"fizz-config.h": "facebook/fizz-config-xplat.h"}, - }), -) diff --git a/fizz/backend/BUCK b/fizz/backend/BUCK deleted file mode 100644 index 39d3b8206f5..00000000000 --- a/fizz/backend/BUCK +++ /dev/null @@ -1,59 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "openssl", - srcs = glob([ - "openssl/*.cpp", - "openssl/certificate/*.cpp", - "openssl/crypto/*.cpp", - "openssl/crypto/aead/*.cpp", - "openssl/crypto/exchange/*.cpp", - "openssl/crypto/signature/*.cpp", - ]), - headers = glob([ - "kex.h", - "openssl/*.h", - "openssl/certificate/*.h", - "openssl/crypto/*.h", - "openssl/crypto/aead/*.h", - "openssl/crypto/exchange/*.h", - "openssl/crypto/signature/*.h", - ]), - deps = [ - "//fizz/crypto/aead:aegiscipher", - "//fizz/crypto/aead:cryptoutil", - "//fizz/crypto/exchange:hybrid_exchange", - "//fizz/experimental/crypto/exchange:oqs_key_exchange", - "//folly:scope_guard", - "//folly/lang:checked_math", - ], - exported_deps = [ - "//fizz:config", - "//fizz/compression:certificate_compressor", - "//fizz/crypto/aead:aead", - "//fizz/crypto/aead:iobuf", - "//fizz/crypto/exchange:key_exchange", - "//fizz/crypto/exchange:x25519", - "//fizz/protocol:certificate", - "//fizz/protocol:default_factory", - "//fizz/record:record", - "//folly:conv", - "//folly:memory", - "//folly:range", - "//folly:string", - "//folly/io:iobuf", - "//folly/io/async/ssl:openssl_transport_certificate", - "//folly/lang:assume", - "//folly/lang:bits", - "//folly/portability:openssl", - "//folly/ssl:openssl_cert_utils", - "//folly/ssl:openssl_hash", - "//folly/ssl:openssl_ptr_types", - ], - exported_external_deps = [ - "glog", - ("openssl", None, "crypto"), - ], -) diff --git a/fizz/backend/openssl/crypto/aead/test/BUCK b/fizz/backend/openssl/crypto/aead/test/BUCK deleted file mode 100644 index 9e068de3cf4..00000000000 --- a/fizz/backend/openssl/crypto/aead/test/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "evpciphers", - srcs = [ - "EVPCipherTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//fizz:config", - "//fizz/backend:openssl", - "//fizz/crypto/aead:iobuf", - "//fizz/crypto/aead/test:test_util", - "//fizz/crypto/test:TestUtil", - "//fizz/record:record", - "//folly:exception_wrapper", - "//folly:string", - "//folly/portability:gtest", - ], -) diff --git a/fizz/backend/openssl/crypto/exchange/test/BUCK b/fizz/backend/openssl/crypto/exchange/test/BUCK deleted file mode 100644 index e398358839d..00000000000 --- a/fizz/backend/openssl/crypto/exchange/test/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "ECKey", - srcs = [ - "ECKeyExchangeTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//folly:string", - "//folly/portability:gtest", - "//folly/ssl:openssl_ptr_types", - ], - external_deps = [ - ("openssl", None, "crypto"), - ], -) diff --git a/fizz/backend/openssl/crypto/signature/test/BUCK b/fizz/backend/openssl/crypto/signature/test/BUCK deleted file mode 100644 index c60cf98758e..00000000000 --- a/fizz/backend/openssl/crypto/signature/test/BUCK +++ /dev/null @@ -1,45 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "ec", - srcs = [ - "ECSignatureTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//fizz/backend:openssl", - "//folly:string", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "ed", - srcs = [ - "EdSignatureTest.cpp", - ], - headers = [ - "EdSignatureTest.h", - ], - supports_static_listing = False, - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//folly:fixed_string", - "//folly:string", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "rsa_pss", - srcs = [ - "RSAPSSSignatureTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//folly/portability:gtest", - ], -) diff --git a/fizz/backend/openssl/crypto/test/BUCK b/fizz/backend/openssl/crypto/test/BUCK deleted file mode 100644 index fe2aa2f2e60..00000000000 --- a/fizz/backend/openssl/crypto/test/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "key_utils", - srcs = [ - "OpenSSLKeyUtilsTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//folly:string", - "//folly/portability:gtest", - ], -) diff --git a/fizz/client/BUCK b/fizz/client/BUCK deleted file mode 100644 index 96bba9074a3..00000000000 --- a/fizz/client/BUCK +++ /dev/null @@ -1,210 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "fizz_client_context", - srcs = ["FizzClientContext.cpp"], - headers = [ - "FizzClientContext.h", - ], - deps = [ - "//fizz/backend:openssl", - ], - exported_deps = [ - ":ech_policy", - ":psk_cache", - "//fizz/compression:cert_decompression_manager", - "//fizz/protocol:certificate", - "//fizz/protocol:factory", - "//fizz/protocol/clock:system_clock", - "//fizz/record:record", - ], -) - -cpp_library( - name = "actions", - headers = [ - "Actions.h", - ], - exported_deps = [ - ":psk_cache", - "//fizz/protocol:actions", - "//fizz/protocol:params", - "//fizz/util:variant", - "//folly:c_portability", - ], -) - -cpp_library( - name = "state", - srcs = [ - "State.cpp", - ], - headers = [ - "State.h", - ], - exported_deps = [ - ":client_extensions", - ":fizz_client_context", - "//fizz/protocol:certificate", - "//fizz/protocol:key_scheduler", - "//fizz/protocol:types", - "//fizz/protocol/ech:encryption", - "//fizz/record:record_layer", - ], -) - -cpp_library( - name = "protocol", - srcs = [ - "ClientProtocol.cpp", - ], - headers = [ - "ClientProtocol.h", - ], - deps = [ - "//fizz/crypto:utils", - "//fizz/crypto/hpke:utils", - "//fizz/protocol:certificate_verifier", - "//fizz/protocol:protocol", - "//fizz/protocol:state_machine", - "//fizz/protocol/ech:encryption", - "//fizz/record:record", - ], - exported_deps = [ - ":actions", - ":client_extensions", - ":fizz_client_context", - ":psk_cache", - ":state", - "//fizz/protocol/ech:encrypted_client_hello", - ], -) - -cpp_library( - name = "early_data_rejection", - srcs = [ - "EarlyDataRejectionPolicy.cpp", - ], - headers = [ - "EarlyDataRejectionPolicy.h", - ], - exported_deps = [ - ":state", - ], -) - -cpp_library( - name = "fizz_client", - headers = [ - "FizzClient.h", - "FizzClient-inl.h", - ], - exported_deps = [ - ":fizz_client_context", - ":protocol", - ":psk_cache", - "//fizz/protocol:default_certificate_verifier", - "//fizz/protocol:fizz_base", - ], -) - -cpp_library( - name = "async_fizz_client", - headers = [ - "AsyncFizzClient.h", - "AsyncFizzClient-inl.h", - ], - exported_deps = [ - ":client_extensions", - ":early_data_rejection", - ":fizz_client", - ":fizz_client_context", - ":protocol", - "//fizz/protocol:async_fizz_base", - "//fizz/protocol:exporter", - "//fizz/util:tracer", - "//folly/io:socket_option_map", - ], -) - -cpp_library( - name = "psk_cache", - headers = [ - "PskCache.h", - ], - exported_deps = [ - "//fizz/protocol:certificate", - "//fizz/protocol:types", - "//fizz/record:record", - ], -) - -cpp_library( - name = "ech_policy", - headers = [ - "ECHPolicy.h", - ], - exported_deps = [ - "//fizz/protocol/ech:encrypted_client_hello", - "//folly:optional", - ], -) - -cpp_library( - name = "psk_serialization_utils", - srcs = [ - "PskSerializationUtils.cpp", - ], - headers = [ - "PskSerializationUtils.h", - ], - deps = [ - "//fizz/record:record", - "//folly/io/async/ssl:openssl_transport_certificate", - "//folly/ssl:openssl_cert_utils", - ], - exported_deps = [ - ":psk_cache", - "//fizz/protocol:factory", - ], -) - -cpp_library( - name = "synchronized_lru_psk_cache", - srcs = [ - "SynchronizedLruPskCache.cpp", - ], - headers = [ - "SynchronizedLruPskCache.h", - ], - exported_deps = [ - ":psk_cache", - "//folly:synchronized", - "//folly/container:evicting_cache_map", - ], -) - -cpp_library( - name = "client_extensions", - headers = [ - "ClientExtensions.h", - ], - exported_deps = [ - "//fizz/record:record", - ], -) - -cpp_library( - name = "multi_client_extensions", - srcs = [ - "MultiClientExtensions.cpp", - ], - headers = [ - "MultiClientExtensions.h", - ], - exported_deps = [ - ":client_extensions", - ], -) diff --git a/fizz/client/test/BUCK b/fizz/client/test/BUCK deleted file mode 100644 index c4214a7c799..00000000000 --- a/fizz/client/test/BUCK +++ /dev/null @@ -1,125 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "client_protocol_test", - srcs = [ - "ClientProtocolTest.cpp", - ], - deps = [ - ":mocks", - ":utilities", - "//fizz/client:fizz_client_context", - "//fizz/client:protocol", - "//fizz/compression/test:mocks", - "//fizz/crypto/hpke:utils", - "//fizz/crypto/hpke/test:mocks", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/protocol/ech:encrypted_client_hello", - "//fizz/protocol/ech/test:test_util", - "//fizz/protocol/test:matchers", - "//fizz/protocol/test:protocol_test", - "//fizz/protocol/test:test_messages", - "//fizz/record/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/client:async_fizz_client", - "//fizz/client:client_extensions", - "//fizz/client:ech_policy", - "//fizz/client:psk_cache", - "//folly/io/async/test:mocks", - ], -) - -cpp_library( - name = "utilities", - headers = [ - "Utilities.h", - ], - exported_deps = [ - "//fizz/client:psk_cache", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "fizz_client_test", - srcs = [ - "FizzClientTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/client:fizz_client", - "//fizz/client:psk_cache", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "async_fizz_client_test", - srcs = [ - "AsyncFizzClientTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/client:async_fizz_client", - "//fizz/protocol/test:mocks", - "//folly/io:socket_option_map", - "//folly/io/async/test:async_socket_test_lib", - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "synchronized_lru_psk_cache_test", - srcs = [ - "SynchronizedLruPskCacheTest.cpp", - ], - deps = [ - ":utilities", - "//fizz/client:synchronized_lru_psk_cache", - "//folly:format", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "psk_serialization_test", - srcs = [ - "PskSerializationTest.cpp", - ], - deps = [ - ":utilities", - "//fizz/client:psk_serialization_utils", - "//fizz/protocol/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "multi_client_extensions_test", - srcs = [ - "MultiClientExtensionsTest.cpp", - ], - deps = [ - "//fizz/client:multi_client_extensions", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/fizz/compression/BUCK b/fizz/compression/BUCK deleted file mode 100644 index 170f9561abb..00000000000 --- a/fizz/compression/BUCK +++ /dev/null @@ -1,122 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "certificate_compressor", - headers = [ - "CertificateCompressor.h", - ], - exported_deps = [ - "//fizz/record:record", - ], -) - -cpp_library( - name = "cert_decompression_manager", - srcs = [ - "CertDecompressionManager.cpp", - ], - headers = [ - "CertDecompressionManager.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - ], -) - -cpp_library( - name = "brotli_certificate_compressor", - srcs = [ - "BrotliCertificateCompressor.cpp", - ], - headers = [ - "BrotliCertificateCompressor.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - ], - external_deps = [ - ("brotli", None, "brotlienc"), - ], -) - -cpp_library( - name = "brotli_certificate_decompressor", - srcs = [ - "BrotliCertificateDecompressor.cpp", - ], - headers = [ - "BrotliCertificateDecompressor.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - ], - external_deps = [ - ("brotli", None, "brotlidec"), - ], -) - -cpp_library( - name = "zlib_certificate_compressor", - srcs = [ - "ZlibCertificateCompressor.cpp", - ], - headers = [ - "ZlibCertificateCompressor.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - ], - exported_external_deps = [ - ("zlib", None, "z"), - ], -) - -cpp_library( - name = "zlib_certificate_decompressor", - srcs = [ - "ZlibCertificateDecompressor.cpp", - ], - headers = [ - "ZlibCertificateDecompressor.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - ], - exported_external_deps = [ - ("zlib", None, "z"), - ], -) - -cpp_library( - name = "zstd_certificate_compressor", - srcs = [ - "ZstdCertificateCompressor.cpp", - ], - headers = [ - "ZstdCertificateCompressor.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - ], - external_deps = [ - "zstd", - ], -) - -cpp_library( - name = "zstd_certificate_decompressor", - srcs = [ - "ZstdCertificateDecompressor.cpp", - ], - headers = [ - "ZstdCertificateDecompressor.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - ], - external_deps = [ - "zstd", - ], -) diff --git a/fizz/compression/test/BUCK b/fizz/compression/test/BUCK deleted file mode 100644 index 123ab62285a..00000000000 --- a/fizz/compression/test/BUCK +++ /dev/null @@ -1,74 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/compression:certificate_compressor", - "//folly/portability:gmock", - ], -) - -cpp_unittest( - name = "cert_decompression_manager_test", - srcs = [ - "CertDecompressionManagerTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/compression:cert_decompression_manager", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "brotli_certificate_compressor_test", - srcs = [ - "BrotliCertificateCompressorTest.cpp", - ], - deps = [ - "//fizz/compression:brotli_certificate_compressor", - "//fizz/compression:brotli_certificate_decompressor", - "//fizz/crypto:utils", - "//fizz/protocol/test:matchers", - "//fizz/protocol/test:utilities", - "//fizz/record:record", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "zlib_certificate_compressor_test", - srcs = [ - "ZlibCertificateCompressorTest.cpp", - ], - deps = [ - "//fizz/compression:zlib_certificate_compressor", - "//fizz/compression:zlib_certificate_decompressor", - "//fizz/protocol/test:matchers", - "//fizz/protocol/test:utilities", - "//fizz/record:record", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "zstd_certificate_compressor_test", - srcs = [ - "ZstdCertificateCompressorTest.cpp", - ], - deps = [ - "//fizz/compression:zstd_certificate_compressor", - "//fizz/compression:zstd_certificate_decompressor", - "//fizz/crypto:utils", - "//fizz/protocol/test:matchers", - "//fizz/protocol/test:utilities", - "//fizz/record:record", - "//folly/portability:gtest", - ], -) diff --git a/fizz/config/BUCK b/fizz/config/BUCK deleted file mode 100644 index 733faa1677f..00000000000 --- a/fizz/config/BUCK +++ /dev/null @@ -1,2 +0,0 @@ -# For now, this file needs to exist for fbcode-target-determinator to work. -# See: https://fb.workplace.com/groups/td.users/permalink/3290301304599199/ diff --git a/fizz/constraints/BUCK b/fizz/constraints/BUCK deleted file mode 100644 index 733faa1677f..00000000000 --- a/fizz/constraints/BUCK +++ /dev/null @@ -1,2 +0,0 @@ -# For now, this file needs to exist for fbcode-target-determinator to work. -# See: https://fb.workplace.com/groups/td.users/permalink/3290301304599199/ diff --git a/fizz/crypto/BUCK b/fizz/crypto/BUCK deleted file mode 100644 index 740e1332d7b..00000000000 --- a/fizz/crypto/BUCK +++ /dev/null @@ -1,112 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "sha", - headers = [ - "Sha.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - ], -) - -cpp_library( - name = "hmac_sha256", - headers = [ - "Sha256.h", - ], - exported_deps = [ - ":sha", - "//fizz/backend:openssl", - ], -) - -cpp_library( - name = "hmac_sha384", - headers = [ - "Sha384.h", - ], - exported_deps = [ - ":sha", - "//fizz/backend:openssl", - ], -) - -cpp_library( - name = "hmac_sha512", - headers = [ - "Sha512.h", - ], - exported_deps = [ - ":sha", - "//fizz/backend:openssl", - ], -) - -cpp_library( - name = "asymmetric", - headers = [ - "ECCurve.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - ], -) - -cpp_library( - name = "hkdf", - srcs = [ - "Hkdf.cpp", - ], - headers = [ - "Hkdf.h", - ], - exported_deps = [ - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "key_derivation", - srcs = [ - "KeyDerivation.cpp", - ], - headers = [ - "KeyDerivation.h", - ], - exported_deps = [ - ":hkdf", - "//fizz/record:record", - ], -) - -cpp_library( - name = "random", - headers = [ - "RandomGenerator.h", - ], - exported_deps = [ - "//folly/io:iobuf", - ], - exported_external_deps = [ - ("libsodium", None, "sodium"), - ], -) - -cpp_library( - name = "utils", - srcs = [ - "Utils.cpp", - ], - headers = [ - "Utils.h", - ], - exported_deps = [ - "//folly:range", - ], - external_deps = [ - ("libsodium", None, "sodium"), - ], -) diff --git a/fizz/crypto/aead/BUCK b/fizz/crypto/aead/BUCK deleted file mode 100644 index 83ff60a0ff2..00000000000 --- a/fizz/crypto/aead/BUCK +++ /dev/null @@ -1,77 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "aead", - headers = [ - "Aead.h", - ], - exported_deps = [ - "//folly:optional", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "iobuf", - srcs = [ - "IOBufUtil.cpp", - ], - headers = [ - "IOBufUtil.h", - ], - exported_deps = [ - "//folly:range", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "cryptoutil", - headers = [ - "CryptoUtil.h", - ], - exported_deps = [ - ":aead", - ":iobuf", - "//folly:conv", - "//folly:memory", - "//folly:range", - ], -) - -cpp_library( - name = "aegiscipher", - srcs = ["AEGISCipher.cpp"], - headers = [ - "AEGISCipher.h", - ], - deps = [ - ":cryptoutil", - "//fizz:config", - "//folly/lang:checked_math", - ] + select({ - "DEFAULT": [ - "fbsource//third-party/libaegis:aegis", - ], - "ovr_config//toolchain/fb:arista": [], - }), - exported_deps = [ - ":aead", - ], -) - -cpp_library( - name = "evpcipher", - headers = [ - "AESGCM128.h", - "AESGCM256.h", - "AESOCB128.h", - "ChaCha20Poly1305.h", - "OpenSSLEVPCipher.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - ], -) diff --git a/fizz/crypto/aead/test/BUCK b/fizz/crypto/aead/test/BUCK deleted file mode 100644 index e606e203d03..00000000000 --- a/fizz/crypto/aead/test/BUCK +++ /dev/null @@ -1,45 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/crypto/aead:aead", - "//folly/portability:gmock", - ], -) - -cpp_library( - name = "test_util", - srcs = [ - "TestUtil.cpp", - ], - headers = [ - "TestUtil.h", - ], - deps = [ - "//fizz/crypto/aead:iobuf", - ], - exported_deps = [ - "//folly:memory", - "//folly:string", - "//folly/io:iobuf", - ], -) - -cpp_unittest( - name = "util_test", - srcs = [ - "IOBufUtilTest.cpp", - ], - deps = [ - "//fizz/crypto/aead:iobuf", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) diff --git a/fizz/crypto/exchange/BUCK b/fizz/crypto/exchange/BUCK deleted file mode 100644 index 932993ae301..00000000000 --- a/fizz/crypto/exchange/BUCK +++ /dev/null @@ -1,75 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "exchange", - headers = [ - "ECCurveKeyExchange.h", - "OpenSSLKeyExchange.h", - ], - exported_deps = [ - ":key_exchange", - "//fizz/backend:openssl", - "//fizz/crypto:asymmetric", - "//fizz/crypto/openssl:openssl", - ], -) - -cpp_library( - name = "x25519", - srcs = [ - "X25519.cpp", - ], - headers = [ - "X25519.h", - ], - deps = [ - "//fizz/crypto:utils", - "//folly:conv", - ], - exported_deps = [ - ":key_exchange", - "//folly:optional", - "//folly:range", - "//folly/io:iobuf", - ], - external_deps = [ - ("libsodium", None, "sodium"), - ], -) - -cpp_library( - name = "key_exchange", - headers = [ - "KeyExchange.h", - ], - exported_deps = [ - "//folly:range", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "async_key_exchange", - headers = [ - "AsyncKeyExchange.h", - ], - exported_deps = [ - ":key_exchange", - "//folly/futures:core", - ], -) - -cpp_library( - name = "hybrid_exchange", - srcs = [ - "HybridKeyExchange.cpp", - ], - headers = [ - "HybridKeyExchange.h", - ], - exported_deps = [ - ":key_exchange", - ], -) diff --git a/fizz/crypto/exchange/test/BUCK b/fizz/crypto/exchange/test/BUCK deleted file mode 100644 index 7bd74435a26..00000000000 --- a/fizz/crypto/exchange/test/BUCK +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/crypto/exchange:async_key_exchange", - "//fizz/crypto/exchange:key_exchange", - "//folly/portability:gmock", - ], -) - -cpp_unittest( - name = "x25519", - srcs = [ - "X25519KeyExchangeTest.cpp", - ], - deps = [ - "//fizz/crypto/exchange:x25519", - "//folly:range", - "//folly:string", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "HybridExchange", - srcs = [ - "HybridKeyExchangeTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/crypto/exchange:hybrid_exchange", - "//folly/portability:gtest", - ], -) diff --git a/fizz/crypto/hpke/BUCK b/fizz/crypto/hpke/BUCK deleted file mode 100644 index 7fee9263c8e..00000000000 --- a/fizz/crypto/hpke/BUCK +++ /dev/null @@ -1,115 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "utils", - srcs = [ - "Utils.cpp", - ], - headers = [ - "Utils.h", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/exchange:x25519", - ], - exported_deps = [ - ":hkdf", - ":types", - "//fizz/crypto:hmac_sha256", - "//fizz/crypto:hmac_sha384", - "//fizz/crypto:hmac_sha512", - "//fizz/crypto/aead:aead", - "//fizz/crypto/aead:evpcipher", - "//fizz/crypto/exchange:exchange", - "//fizz/crypto/exchange:key_exchange", - "//fizz/protocol:types", - ], -) - -cpp_library( - name = "hkdf", - srcs = [ - "Hkdf.cpp", - ], - headers = [ - "Hkdf.h", - ], - deps = [ - "//fizz/record:record", - ], - exported_deps = [ - "//fizz/crypto:hkdf", - ], -) - -cpp_library( - name = "dhkem", - srcs = [ - "DHKEM.cpp", - ], - headers = [ - "DHKEM.h", - ], - deps = [ - "//folly/io:iobuf", - ], - exported_deps = [ - ":hkdf", - ":types", - "//fizz/backend:openssl", - "//fizz/crypto:asymmetric", - "//fizz/crypto/exchange:exchange", - "//fizz/crypto/exchange:key_exchange", - "//fizz/record:record", - ], -) - -cpp_library( - name = "types", - headers = [ - "Types.h", - ], - exported_deps = [ - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "context", - srcs = [ - "Context.cpp", - ], - headers = [ - "Context.h", - ], - deps = [ - ":utils", - ], - exported_deps = [ - ":hkdf", - ":types", - "//fizz/crypto/aead:aead", - "//fizz/crypto/aead:evpcipher", - "//fizz/protocol:types", - ], -) - -cpp_library( - name = "hpke", - srcs = [ - "Hpke.cpp", - ], - headers = [ - "Hpke.h", - ], - deps = [ - ":types", - ], - exported_deps = [ - ":context", - ":dhkem", - "//fizz/crypto/aead:aead", - ], -) diff --git a/fizz/crypto/hpke/test/BUCK b/fizz/crypto/hpke/test/BUCK deleted file mode 100644 index 74dceea9a42..00000000000 --- a/fizz/crypto/hpke/test/BUCK +++ /dev/null @@ -1,64 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "dhkem_test", - srcs = [ - "DHKEMTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/exchange:key_exchange", - "//fizz/crypto/hpke:dhkem", - "//fizz/crypto/test:TestUtil", - "//fizz/record:record", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "context_test", - srcs = [ - "ContextTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":mocks", - "//fizz/backend:openssl", - "//fizz/crypto/aead/test:test_util", - "//fizz/crypto/hpke:context", - "//fizz/crypto/hpke:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol:types", - "//fizz/record:record", - ], -) - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/crypto/aead:aead", - "//fizz/crypto/exchange:x25519", - "//fizz/crypto/hpke:context", - "//folly/portability:gmock", - ], -) - -cpp_unittest( - name = "hpke_test", - srcs = [ - "HpkeTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/backend:openssl", - "//fizz/crypto/hpke:hpke", - "//fizz/crypto/hpke:utils", - "//fizz/crypto/test:TestUtil", - ], -) diff --git a/fizz/crypto/openssl/BUCK b/fizz/crypto/openssl/BUCK deleted file mode 100644 index cc2dfab8dd9..00000000000 --- a/fizz/crypto/openssl/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "openssl", - srcs = [ - ], - headers = [ - "OpenSSL.h", - "OpenSSLKeyUtils.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - ], -) diff --git a/fizz/crypto/openssl/test/BUCK b/fizz/crypto/openssl/test/BUCK deleted file mode 100644 index f5fae50b525..00000000000 --- a/fizz/crypto/openssl/test/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "key_utils", - srcs = [ - "OpenSSLKeyUtilsTest.cpp", - ], - deps = [ - "//fizz/crypto/openssl:openssl", - "//fizz/crypto/test:TestUtil", - "//folly:string", - "//folly/portability:gtest", - ], -) diff --git a/fizz/crypto/signature/BUCK b/fizz/crypto/signature/BUCK deleted file mode 100644 index 36575d7c295..00000000000 --- a/fizz/crypto/signature/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "signature", - headers = [ - "Signature.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/openssl:openssl", - ], -) diff --git a/fizz/crypto/signature/test/BUCK b/fizz/crypto/signature/test/BUCK deleted file mode 100644 index b5ff7b9cd30..00000000000 --- a/fizz/crypto/signature/test/BUCK +++ /dev/null @@ -1,46 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "ec", - srcs = [ - "ECSignatureTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//fizz/crypto:asymmetric", - "//fizz/crypto/signature:signature", - "//folly:string", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "ed", - srcs = [ - "EdSignatureTest.cpp", - ], - headers = [ - "EdSignatureTest.h", - ], - supports_static_listing = False, - deps = [ - "//fizz/crypto/signature:signature", - "//fizz/crypto/test:TestUtil", - "//folly:fixed_string", - "//folly:string", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "rsa_pss", - srcs = [ - "RSAPSSSignatureTest.cpp", - ], - deps = [ - "//fizz/crypto/signature:signature", - "//folly/portability:gtest", - ], -) diff --git a/fizz/crypto/test/BUCK b/fizz/crypto/test/BUCK deleted file mode 100644 index 56098b0f18e..00000000000 --- a/fizz/crypto/test/BUCK +++ /dev/null @@ -1,94 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/crypto:key_derivation", - "//folly/portability:gmock", - ], -) - -cpp_library( - name = "TestUtil", - srcs = [ - "TestUtil.cpp", - ], - headers = [ - "TestUtil.h", - ], - deps = [ - "//fizz:config", - "//fizz/backend:openssl", - "//fizz/crypto/aead:aegiscipher", - "//folly/ssl:openssl_cert_utils", - ], - exported_deps = [ - "//fizz/crypto/aead:aead", - "//fizz/crypto/aead:evpcipher", - "//fizz/protocol:types", - "//folly:string", - "//folly/io:iobuf", - "//folly/ssl:openssl_ptr_types", - ], - external_deps = [ - ("libsodium", None, "sodium"), - ], -) - -cpp_unittest( - name = "hkdf_tests", - srcs = [ - "HkdfTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":TestUtil", - "//fizz/backend:openssl", - "//fizz/crypto:hkdf", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "key_derivation", - srcs = [ - "KeyDerivationTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto:key_derivation", - "//folly:string", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "random_generator_test", - srcs = [ - "RandomGeneratorTest.cpp", - ], - deps = [ - ":TestUtil", - "//fizz/crypto:random", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "utils_test", - srcs = [ - "UtilsTest.cpp", - ], - deps = [ - "//fizz/crypto:utils", - "//folly/portability:gtest", - ], -) diff --git a/fizz/experimental/batcher/BUCK b/fizz/experimental/batcher/BUCK deleted file mode 100644 index 5d42915029c..00000000000 --- a/fizz/experimental/batcher/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "batcher", - headers = [ - "Batcher.h", - ], - exported_deps = [ - "//fizz/experimental/crypto:batch_signature", - "//fizz/experimental/protocol:batch_signature_types", - "//fizz/server:async_self_cert", - "//folly/futures:shared_promise", - ], -) diff --git a/fizz/experimental/batcher/test/BUCK b/fizz/experimental/batcher/test/BUCK deleted file mode 100644 index b0791cb0d15..00000000000 --- a/fizz/experimental/batcher/test/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "batcher_test", - srcs = [ - "BatcherTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//fizz/experimental/batcher:batcher", - "//fizz/experimental/client:batch_signature_peer_cert", - "//fizz/experimental/server:batch_signature_async_self_cert", - "//fizz/server:protocol", - "//fizz/server/test:mocks", - "//folly/portability:gtest", - ], -) diff --git a/fizz/experimental/client/BUCK b/fizz/experimental/client/BUCK deleted file mode 100644 index bd82e1258b4..00000000000 --- a/fizz/experimental/client/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "batch_signature_peer_cert", - srcs = [ - "BatchSignaturePeerCert.cpp", - ], - headers = [ - "BatchSignaturePeerCert.h", - ], - exported_deps = [ - "//fizz/experimental/crypto:batch_signature", - "//fizz/experimental/protocol:batch_signature_types", - "//fizz/protocol:certificate", - ], -) diff --git a/fizz/experimental/client/test/BUCK b/fizz/experimental/client/test/BUCK deleted file mode 100644 index efe7beb58a5..00000000000 --- a/fizz/experimental/client/test/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "batch_signature_peer_cert_test", - srcs = [ - "BatchSignaturePeerCertTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//fizz/experimental/batcher:batcher", - "//fizz/experimental/client:batch_signature_peer_cert", - "//fizz/experimental/server:batch_signature_async_self_cert", - "//fizz/protocol/test:mocks", - "//folly/executors:manual_executor", - "//folly/portability:gtest", - ], -) diff --git a/fizz/experimental/crypto/BUCK b/fizz/experimental/crypto/BUCK deleted file mode 100644 index 3cbefe385d1..00000000000 --- a/fizz/experimental/crypto/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "merkle_tree", - headers = [ - "MerkleTree.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - "//fizz/crypto:hmac_sha256", - "//fizz/crypto:random", - "//fizz/record:record", - "//folly/container:f14_hash", - ], -) - -cpp_library( - name = "batch_signature", - headers = [ - "BatchSignature.h", - ], - exported_deps = [ - ":merkle_tree", - "//fizz/record:record", - ], -) diff --git a/fizz/experimental/crypto/exchange/BUCK b/fizz/experimental/crypto/exchange/BUCK deleted file mode 100644 index 7dbdaee49e4..00000000000 --- a/fizz/experimental/crypto/exchange/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "oqs_key_exchange", - srcs = [ - "OQSKeyExchange.cpp", - ], - headers = [ - "OQSKeyExchange.h", - ], - exported_deps = [ - "fbsource//third-party/liboqs:oqs", - "//fizz/crypto/exchange:key_exchange", - "//fizz/protocol:factory", - "//folly:memory", - ], -) diff --git a/fizz/experimental/crypto/test/BUCK b/fizz/experimental/crypto/test/BUCK deleted file mode 100644 index 5dc8b4b506c..00000000000 --- a/fizz/experimental/crypto/test/BUCK +++ /dev/null @@ -1,40 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "merkle_tree_test", - srcs = [ - "MerkleTreeTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//fizz/experimental/crypto:merkle_tree", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "batch_signature_test", - srcs = [ - "BatchSignatureTest.cpp", - ], - deps = [ - "//fizz/crypto/test:TestUtil", - "//fizz/experimental/crypto:batch_signature", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "oqs_key_exchange_test", - srcs = [ - "OQSKeyExchangeTest.cpp", - ], - deps = [ - "//fizz/experimental/crypto/exchange:oqs_key_exchange", - "//folly/portability:gtest", - ], -) diff --git a/fizz/experimental/ktls/BUCK b/fizz/experimental/ktls/BUCK deleted file mode 100644 index 44cbd328f38..00000000000 --- a/fizz/experimental/ktls/BUCK +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "ktls", - srcs = [ - "AsyncFizzBaseKTLS.cpp", - "AsyncKTLSSocket.cpp", - "FizzKTLSCallback.cpp", - "KTLS.cpp", - ], - headers = [ - "AsyncFizzBaseKTLS.h", - "AsyncKTLSSocket.h", - "FizzKTLSCallback.h", - "KTLS.h", - "LinuxKTLS.h", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/client:state", - "//folly:file", - "//folly/portability:sockets", - ], - exported_deps = [ - "//fizz/crypto/aead:aead", - "//fizz/experimental/util:cert_extraction", - "//fizz/protocol:async_fizz_base", - "//fizz/protocol:key_scheduler", - "//fizz/record:record", - "//fizz/record:record_layer", - "//folly:c_portability", - "//folly:exception_wrapper", - "//folly:expected", - "//folly:function", - "//folly/io/async:async_socket", - "//folly/net:network_socket", - ], - exported_external_deps = [ - "glog", - ], -) diff --git a/fizz/experimental/ktls/test/BUCK b/fizz/experimental/ktls/test/BUCK deleted file mode 100644 index 494fd8047b5..00000000000 --- a/fizz/experimental/ktls/test/BUCK +++ /dev/null @@ -1,76 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "ktls_test", - srcs = [ - "KTLSTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/aead:aead", - "//fizz/experimental/ktls:ktls", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "async_fizz_base_ktls_test", - srcs = [ - "AsyncFizzBaseKTLSTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/client:async_fizz_client", - "//fizz/client:synchronized_lru_psk_cache", - "//fizz/crypto/test:TestUtil", - "//fizz/experimental/ktls:ktls", - "//fizz/protocol:certificate", - "//fizz/protocol/test:mocks", - "//fizz/server:aead_ticket_cipher", - "//fizz/server:async_fizz_server", - "//fizz/server:cert_manager", - "//fizz/server:fizz_server_context", - "//fizz/server:ticket_codec", - "//folly:function", - "//folly/futures:core", - "//folly/io/async:async_socket", - "//folly/io/async:server_socket", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "async_ktls_socket_test", - srcs = [ - "AsyncKTLSSocketTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/experimental/ktls:ktls", - "//fizz/record:encrypted_record_layer", - "//folly/futures:core", - "//folly/io/async:async_socket", - "//folly/io/async:server_socket", - "//folly/io/async/test:mocks", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "async_ktls_rx_socket_test", - srcs = [ - "AsyncKTLSRxSocketTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/experimental/ktls:ktls", - "//fizz/record:encrypted_record_layer", - "//folly/futures:core", - "//folly/io/async:async_socket", - "//folly/io/async:server_socket", - "//folly/io/async/test:mocks", - "//folly/test:test_utils", - ], -) diff --git a/fizz/experimental/protocol/BUCK b/fizz/experimental/protocol/BUCK deleted file mode 100644 index ae586d61b6b..00000000000 --- a/fizz/experimental/protocol/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "batch_signature_factory", - headers = [ - "BatchSignatureFactory.h", - ], - exported_deps = [ - "//fizz/experimental/client:batch_signature_peer_cert", - "//fizz/protocol:factory", - ], -) - -cpp_library( - name = "batch_signature_types", - srcs = [ - "BatchSignatureTypes.cpp", - ], - headers = [ - "BatchSignatureTypes.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - "//fizz/crypto:hmac_sha256", - "//fizz/record:record", - ], -) diff --git a/fizz/experimental/protocol/test/BUCK b/fizz/experimental/protocol/test/BUCK deleted file mode 100644 index e3b1d73d994..00000000000 --- a/fizz/experimental/protocol/test/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "batch_signature_types_test", - srcs = [ - "BatchSignatureTypesTest.cpp", - ], - deps = [ - "//fizz/experimental/protocol:batch_signature_types", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/fizz/experimental/server/BUCK b/fizz/experimental/server/BUCK deleted file mode 100644 index 01dbe18f51b..00000000000 --- a/fizz/experimental/server/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "batch_signature_async_self_cert", - headers = [ - "BatchSignatureAsyncSelfCert.h", - ], - exported_deps = [ - "//fizz/experimental/batcher:batcher", - "//fizz/experimental/crypto:batch_signature", - "//fizz/experimental/protocol:batch_signature_types", - "//fizz/server:async_self_cert", - "//fizz/server:protocol", - ], -) diff --git a/fizz/experimental/server/test/BUCK b/fizz/experimental/server/test/BUCK deleted file mode 100644 index 96dbe203b92..00000000000 --- a/fizz/experimental/server/test/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "batch_signature_async_self_cert_test", - srcs = [ - "BatchSignatureAsyncSelfCertTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//fizz/experimental/batcher:batcher", - "//fizz/experimental/server:batch_signature_async_self_cert", - "//fizz/protocol/test:mocks", - "//fizz/server/test:mocks", - "//folly/portability:gtest", - ], -) diff --git a/fizz/experimental/util/BUCK b/fizz/experimental/util/BUCK deleted file mode 100644 index 45ce6ea163a..00000000000 --- a/fizz/experimental/util/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "cert_extraction", - srcs = [], - headers = [ - "CertExtraction.h", - ], - deps = [ - ], - exported_deps = [ - "//fizz/client:async_fizz_client", - "//fizz/server:async_fizz_server", - ], -) diff --git a/fizz/extensions/delegatedcred/BUCK b/fizz/extensions/delegatedcred/BUCK deleted file mode 100644 index cdc03690331..00000000000 --- a/fizz/extensions/delegatedcred/BUCK +++ /dev/null @@ -1,143 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "delegated_credential", - srcs = [ - "Types.cpp", - ], - headers = [ - "Types.h", - ], - deps = [ - "//folly:string", - "//folly/io:iobuf", - ], - exported_deps = [ - "//fizz/record:record", - "//folly:optional", - ], -) - -cpp_library( - name = "delegated_credential_client_extension", - srcs = [ - "DelegatedCredentialClientExtension.cpp", - ], - headers = [ - "DelegatedCredentialClientExtension.h", - ], - exported_deps = [ - ":delegated_credential", - "//fizz/client:client_extensions", - ], -) - -cpp_library( - name = "delegated_credential_utils", - srcs = [ - "DelegatedCredentialUtils.cpp", - ], - headers = [ - "DelegatedCredentialUtils.h", - ], - deps = [ - "//fizz/backend:openssl", - "//folly/ssl:openssl_cert_utils", - ], - exported_deps = [ - ":delegated_credential", - "//fizz/protocol:certificate", - "//fizz/protocol/clock:clock", - "//folly/ssl:openssl_ptr_types", - ], -) - -cpp_library( - name = "delegated_credential_pem_utils", - srcs = [ - "DelegatedCredentialPemUtils.cpp", - ], - headers = [ - "DelegatedCredentialPemUtils.h", - ], - deps = [ - ":delegated_credential_utils", - "//folly:base64", - "//folly:format", - "//folly:range", - ], - exported_deps = [ - ":delegated_credential", - ":self_delegated_credential", - ], -) - -cpp_library( - name = "peer_delegated_credential", - headers = [ - "PeerDelegatedCredential.h", - "PeerDelegatedCredential-inl.h", - ], - exported_deps = [ - ":delegated_credential", - ":delegated_credential_utils", - "//fizz/backend:openssl", - "//fizz/protocol:openssl_certificate", - "//fizz/protocol/clock:system_clock", - "//folly/ssl:openssl_cert_utils", - ], -) - -cpp_library( - name = "self_delegated_credential", - headers = [ - "SelfDelegatedCredential.h", - "SelfDelegatedCredential-inl.h", - ], - exported_deps = [ - ":delegated_credential", - ":delegated_credential_utils", - "//fizz/backend:openssl", - "//fizz/protocol:openssl_certificate", - "//folly/ssl:openssl_cert_utils", - ], -) - -cpp_library( - name = "delegated_credential_factory", - srcs = [ - "DelegatedCredentialFactory.cpp", - ], - headers = [ - "DelegatedCredentialFactory.h", - ], - deps = [ - ":peer_delegated_credential", - "//folly/portability:openssl", - ], - exported_deps = [ - ":delegated_credential", - "//fizz/backend:openssl", - "//fizz/protocol:openssl_factory", - ], -) - -cpp_library( - name = "delegated_credential_cert_manager", - srcs = [ - "DelegatedCredentialCertManager.cpp", - ], - headers = [ - "DelegatedCredentialCertManager.h", - ], - deps = [ - ":delegated_credential_utils", - ], - exported_deps = [ - ":delegated_credential", - ":self_delegated_credential", - "//fizz/server:cert_manager", - ], -) diff --git a/fizz/extensions/delegatedcred/test/BUCK b/fizz/extensions/delegatedcred/test/BUCK deleted file mode 100644 index 4e06e1d5fd2..00000000000 --- a/fizz/extensions/delegatedcred/test/BUCK +++ /dev/null @@ -1,119 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "delegated_credential_types_test", - srcs = [ - "DelegatedCredTypesTest.cpp", - ], - deps = [ - "//fizz/extensions/delegatedcred:delegated_credential", - "//folly/io:iobuf", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "delegated_credential_pem_utils_test", - srcs = [ - "DelegatedCredentialPemUtilsTest.cpp", - ], - deps = [ - "//fizz/extensions/delegatedcred:delegated_credential_pem_utils", - "//folly:base64", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "delegated_credential_utils_test", - srcs = [ - "DelegatedCredentialUtilsTest.cpp", - ], - deps = [ - "//fizz/crypto:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/extensions/delegatedcred:delegated_credential_utils", - "//fizz/protocol/clock/test:mock_clock", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/ssl:openssl_ptr_types", - ], -) - -cpp_unittest( - name = "delegated_credential_factory_test", - srcs = [ - "DelegatedCredentialFactoryTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/extensions/delegatedcred:delegated_credential_factory", - "//fizz/extensions/delegatedcred:peer_delegated_credential", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "peer_delegated_credential_test", - srcs = [ - "PeerDelegatedCredentialTest.cpp", - ], - deps = [ - "//fizz/crypto:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/extensions/delegatedcred:peer_delegated_credential", - "//fizz/protocol/clock/test:mock_clock", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "self_delegated_credential_test", - srcs = [ - "SelfDelegatedCredentialTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/extensions/delegatedcred:delegated_credential_utils", - "//fizz/extensions/delegatedcred:self_delegated_credential", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/ssl:openssl_ptr_types", - ], -) - -cpp_unittest( - name = "delegated_credential_cert_manager_test", - srcs = [ - "DelegatedCredentialCertManagerTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/extensions/delegatedcred:delegated_credential_cert_manager", - "//fizz/protocol/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/extensions/delegatedcred:self_delegated_credential", - "//folly/io/async/test:mocks", - ], -) diff --git a/fizz/extensions/exportedauth/BUCK b/fizz/extensions/exportedauth/BUCK deleted file mode 100644 index ba579c116fb..00000000000 --- a/fizz/extensions/exportedauth/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "exported_authenticator", - srcs = [ - "ExportedAuthenticator.cpp", - ], - headers = [ - "ExportedAuthenticator.h", - "Util.h", - ], - deps = ["//fizz/backend:openssl"], - exported_deps = [ - "//fizz/crypto:key_derivation", - "//fizz/protocol:async_fizz_base", - "//fizz/protocol:certificate", - "//fizz/protocol:exporter", - "//fizz/protocol:protocol", - "//fizz/record:record", - "//fizz/record:record_layer", - ], -) diff --git a/fizz/extensions/exportedauth/test/BUCK b/fizz/extensions/exportedauth/test/BUCK deleted file mode 100644 index 1ab0c7c863d..00000000000 --- a/fizz/extensions/exportedauth/test/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "exported_authenticator_test", - srcs = [ - "ExportedAuthenticatorTest.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//fizz/extensions/exportedauth:exported_authenticator", - "//fizz/protocol/test:mocks", - "//fizz/protocol/test:test_messages", - "//fizz/record:record", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/fizz/extensions/javacrypto/BUCK b/fizz/extensions/javacrypto/BUCK deleted file mode 100644 index d16a5efda95..00000000000 --- a/fizz/extensions/javacrypto/BUCK +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "java_crypto", - srcs = [ - "JavaCryptoCertificateVerifier.cpp", - "JavaCryptoPeerCert.cpp", - "JniUtils.cpp", - "OnLoad.cpp", - ], - headers = [ - "JavaCryptoCertificateVerifier.h", - "JavaCryptoFactory.h", - "JavaCryptoPeerCert.h", - "JniUtils.h", - ], - # This library uses proxygen, which hasn't been modularized yet, so keep - # using textual inclusion for now. - modular_headers = False, - deps = [ - "//folly/ssl:openssl_cert_utils", - ], - exported_deps = [ - "fbsource//third-party/jvm:jvm", - "//fizz/backend:openssl", - "//fizz/crypto/signature:signature", - "//fizz/protocol:certificate", - "//fizz/protocol:certificate_verifier", - "//fizz/protocol:openssl_factory", - "//fizz/record:record", - "//folly:range", - ], - external_deps = [ - "glog", - ], -) diff --git a/fizz/extensions/tokenbinding/BUCK b/fizz/extensions/tokenbinding/BUCK deleted file mode 100644 index 26617ccf061..00000000000 --- a/fizz/extensions/tokenbinding/BUCK +++ /dev/null @@ -1,107 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "token_binding", - srcs = [ - "Types.cpp", - ], - headers = [ - "Types.h", - ], - deps = [ - "//folly:string", - "//folly/io:iobuf", - ], - exported_deps = [ - "//fizz/record:record", - "//folly:optional", - ], -) - -cpp_library( - name = "token_binding_server_extension", - headers = [ - "TokenBindingServerExtension.h", - ], - exported_deps = [ - ":token_binding", - ":token_binding_context", - "//fizz/server:negotiator", - "//fizz/server:server_extensions", - ], -) - -cpp_library( - name = "token_binding_client_extension", - srcs = [ - "TokenBindingClientExtension.cpp", - ], - headers = [ - "TokenBindingClientExtension.h", - ], - exported_deps = [ - ":token_binding", - ":token_binding_context", - "//fizz/client:client_extensions", - "//folly:optional", - ], -) - -cpp_library( - name = "token_binding_context", - headers = [ - "TokenBindingContext.h", - ], - exported_deps = [ - ":token_binding", - ], -) - -cpp_library( - name = "token_binding_validator", - srcs = [ - "Validator.cpp", - ], - headers = [ - "Validator.h", - ], - deps = [ - ":utils", - ], - exported_deps = [ - ":token_binding", - "//fizz/backend:openssl", - "//fizz/crypto/signature:signature", - "//fizz/record:record", - ], -) - -cpp_library( - name = "utils", - headers = [ - "Utils.h", - ], - exported_deps = [ - ":token_binding", - ], -) - -cpp_library( - name = "token_binding_constructor", - srcs = [ - "TokenBindingConstructor.cpp", - ], - headers = [ - "TokenBindingConstructor.h", - ], - deps = [ - ":utils", - "//fizz/backend:openssl", - ], - exported_deps = [ - ":token_binding", - "//folly/ssl:openssl_ptr_types", - ], -) diff --git a/fizz/extensions/tokenbinding/test/BUCK b/fizz/extensions/tokenbinding/test/BUCK deleted file mode 100644 index d5163d232e3..00000000000 --- a/fizz/extensions/tokenbinding/test/BUCK +++ /dev/null @@ -1,72 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "token_binding_test", - srcs = [ - "TokenBindingTest.cpp", - ], - deps = [ - "//fizz/extensions/tokenbinding:token_binding", - "//fizz/extensions/tokenbinding:token_binding_context", - "//fizz/record:record", - "//fizz/record/test:extension_tests_base", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "token_binding_server_extension_test", - srcs = [ - "TokenBindingServerExtensionTest.cpp", - ], - deps = [ - "//fizz/extensions/tokenbinding:token_binding", - "//fizz/extensions/tokenbinding:token_binding_context", - "//fizz/extensions/tokenbinding:token_binding_server_extension", - "//fizz/record:record", - "//fizz/server:server_extensions", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "validator_test", - srcs = [ - "ValidatorTest.cpp", - ], - deps = [ - "//fizz/extensions/tokenbinding:token_binding", - "//fizz/extensions/tokenbinding:token_binding_validator", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "token_binding_client_extension_test", - srcs = [ - "TokenBindingClientExtensionTest.cpp", - ], - deps = [ - "//fizz/extensions/tokenbinding:token_binding_client_extension", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "token_binding_constructor_test", - srcs = [ - "TokenBindingConstructorTest.cpp", - ], - deps = [ - "//fizz/extensions/tokenbinding:token_binding_constructor", - "//fizz/extensions/tokenbinding:token_binding_validator", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/fizz/platform/BUCK b/fizz/platform/BUCK deleted file mode 100644 index 733faa1677f..00000000000 --- a/fizz/platform/BUCK +++ /dev/null @@ -1,2 +0,0 @@ -# For now, this file needs to exist for fbcode-target-determinator to work. -# See: https://fb.workplace.com/groups/td.users/permalink/3290301304599199/ diff --git a/fizz/protocol/BUCK b/fizz/protocol/BUCK deleted file mode 100644 index 0480d2eed56..00000000000 --- a/fizz/protocol/BUCK +++ /dev/null @@ -1,281 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "state_machine", - headers = [ - "StateMachine.h", - "StateMachine-inl.h", - ], - exported_external_deps = [ - "glog", - ], -) - -cpp_library( - name = "events", - srcs = [ - "Events.cpp", - ], - headers = [ - "Events.h", - ], - exported_deps = [ - "//folly:range", - ], -) - -cpp_library( - name = "params", - srcs = [ - "Params.cpp", - ], - headers = [ - "Params.h", - ], - exported_deps = [ - ":events", - "//fizz/client:client_extensions", - "//fizz/client:psk_cache", - "//fizz/crypto/aead:aead", - "//fizz/protocol/ech:encrypted_client_hello", - "//fizz/record:record", - "//fizz/util:variant", - "//folly:executor", - "//folly/io:iobuf", - "//folly/io/async:write_flags", - ], -) - -cpp_library( - name = "key_scheduler", - srcs = [ - "KeyScheduler.cpp", - ], - headers = [ - "KeyScheduler.h", - ], - deps = [ - "//fizz/protocol/ech:encrypted_client_hello", - ], - exported_deps = [ - "//fizz/crypto:key_derivation", - "//fizz/crypto/aead:aead", - "//fizz/util:variant", - "//folly:optional", - ], -) - -cpp_library( - name = "certificate", - srcs = [ - "Certificate.cpp", - ], - headers = [ - "Certificate.h", - ], - exported_deps = [ - "//fizz:config", - "//fizz/record:record", - "//folly/io/async:async_transport_certificate", - "//folly/io/async/ssl:openssl_transport_certificate", - ], -) - -cpp_library( - name = "openssl_certificate", - headers = [ - "CertUtils.h", - "OpenSSLPeerCertImpl.h", - "OpenSSLSelfCertImpl.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/signature:signature", - ], -) - -cpp_library( - name = "handshake_context", - headers = [ - "HandshakeContext.h", - "HandshakeContext-inl.h", - ], - exported_deps = [ - "//fizz/crypto:key_derivation", - "//fizz/record:record", - ], -) - -cpp_library( - name = "factory", - headers = [ - "Factory.h", - ], - exported_deps = [ - ":certificate", - ":handshake_context", - ":key_scheduler", - ":types", - "//fizz/crypto:key_derivation", - "//fizz/crypto:random", - "//fizz/crypto/aead:aead", - "//fizz/crypto/exchange:key_exchange", - "//fizz/record:encrypted_record_layer", - "//fizz/record:plaintext_record_layer", - "//fizz/record:record", - ], -) - -cpp_library( - name = "default_factory", - headers = [ - "DefaultFactory.h", - ], - exported_deps = [ - ":factory", - ], -) - -cpp_library( - name = "openssl_factory", - headers = [ - "OpenSSLFactory.h", - ], - exported_deps = [ - ":default_factory", - "//fizz/backend:openssl", - "//fizz/crypto:hmac_sha256", - "//fizz/crypto:hmac_sha384", - "//fizz/crypto:hmac_sha512", - "//fizz/crypto/aead:aegiscipher", - "//fizz/crypto/aead:evpcipher", - "//fizz/crypto/exchange:exchange", - "//fizz/crypto/exchange:x25519", - ], -) - -cpp_library( - name = "types", - srcs = [ - "Types.cpp", - ], - headers = [ - "Types.h", - ], - exported_deps = [ - "//fizz/record:record", - "//folly:range", - ], -) - -cpp_library( - name = "actions", - headers = [ - "Actions.h", - ], - exported_deps = [ - ":key_scheduler", - ":types", - "//fizz/record:record_layer", - "//folly:c_portability", - "//folly:exception_wrapper", - "//folly:range", - "//folly:small_vector", - "//folly/io:iobuf", - "//folly/io/async:write_flags", - ], -) - -cpp_library( - name = "protocol", - headers = [ - "Protocol.h", - ], - exported_deps = [ - ":factory", - ":key_scheduler", - "//fizz/record:record", - ], -) - -cpp_library( - name = "fizz_base", - headers = [ - "FizzBase.h", - "FizzBase-inl.h", - ], - exported_deps = [ - ":exporter", - ":factory", - ":params", - "//fizz/util:variant", - "//folly/io/async:async_socket_exception", - "//folly/io/async:delayed_destruction", - ], -) - -cpp_library( - name = "async_fizz_base", - srcs = [ - "AsyncFizzBase.cpp", - ], - headers = [ - "AsyncFizzBase.h", - ], - deps = [ - "//folly:conv", - ], - exported_deps = [ - ":certificate", - ":key_scheduler", - "//fizz/record:record", - "//folly/io:iobuf", - "//folly/io/async:async_socket", - "//folly/io/async:decorated_async_transport_wrapper", - ], -) - -cpp_library( - name = "default_certificate_verifier", - srcs = [ - "DefaultCertificateVerifier.cpp", - ], - headers = [ - "DefaultCertificateVerifier.h", - ], - deps = [ - "//folly:file_util", - "//folly/ssl:openssl_cert_utils", - ], - exported_deps = [ - ":certificate_verifier", - "//folly/ssl:openssl_ptr_types", - ], -) - -cpp_library( - name = "certificate_verifier", - headers = [ - "CertificateVerifier.h", - ], - exported_deps = [ - ":certificate", - "//fizz/record:record", - ], -) - -cpp_library( - name = "exporter", - srcs = [ - "Exporter.cpp", - ], - headers = [ - "Exporter.h", - ], - exported_deps = [ - ":factory", - "//fizz/crypto:key_derivation", - ], -) diff --git a/fizz/protocol/clock/BUCK b/fizz/protocol/clock/BUCK deleted file mode 100644 index 83ebf4b608f..00000000000 --- a/fizz/protocol/clock/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "clock", - headers = [ - "Clock.h", - ], -) - -cpp_library( - name = "system_clock", - srcs = [ - "SystemClock.cpp", - ], - headers = [ - "SystemClock.h", - ], - exported_deps = [ - ":clock", - ], -) diff --git a/fizz/protocol/clock/test/BUCK b/fizz/protocol/clock/test/BUCK deleted file mode 100644 index 5f500b24636..00000000000 --- a/fizz/protocol/clock/test/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "mock_clock", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/protocol/clock:clock", - "//folly/portability:gmock", - ], -) diff --git a/fizz/protocol/ech/BUCK b/fizz/protocol/ech/BUCK deleted file mode 100644 index 609be59bec2..00000000000 --- a/fizz/protocol/ech/BUCK +++ /dev/null @@ -1,54 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "encrypted_client_hello", - headers = [ - "ECHExtensions.h", - "ECHExtensions-inl.h", - "Types.h", - "Types-inl.h", - ], - exported_deps = [ - "//fizz/crypto/hpke:types", - "//fizz/record:record", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "encryption", - srcs = [ - "Encryption.cpp", - ], - headers = [ - "Encryption.h", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/hpke:utils", - "//fizz/protocol:protocol", - "//fizz/record:record", - ], - exported_deps = [ - ":encrypted_client_hello", - "//fizz/crypto/exchange:key_exchange", - "//fizz/crypto/hpke:hpke", - "//fizz/protocol:factory", - ], -) - -cpp_library( - name = "decrypter", - srcs = [ - "Decrypter.cpp", - ], - headers = [ - "Decrypter.h", - ], - exported_deps = [ - ":encrypted_client_hello", - ":encryption", - ], -) diff --git a/fizz/protocol/ech/test/BUCK b/fizz/protocol/ech/test/BUCK deleted file mode 100644 index 6425f612ae5..00000000000 --- a/fizz/protocol/ech/test/BUCK +++ /dev/null @@ -1,68 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "ech_test", - srcs = [ - "ECHTest.cpp", - ], - deps = [ - ":test_util", - "//fizz/protocol/ech:encrypted_client_hello", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "encryption_test", - srcs = [ - "EncryptionTest.cpp", - ], - deps = [ - ":test_util", - "//fizz/crypto/hpke:hpke", - "//fizz/crypto/hpke:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/ech:encryption", - "//fizz/protocol/test:mocks", - "//fizz/protocol/test:test_messages", - "//fizz/record:record", - "//folly/lang:bits", - ], -) - -cpp_library( - name = "test_util", - srcs = [ - "TestUtil.cpp", - ], - headers = [ - "TestUtil.h", - ], - deps = [ - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/ech:encryption", - ], - exported_deps = [ - "//fizz/crypto/exchange:key_exchange", - "//fizz/protocol/ech:encrypted_client_hello", - ], -) - -cpp_unittest( - name = "decrypter_test", - srcs = [ - "DecrypterTest.cpp", - ], - deps = [ - ":test_util", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/ech:decrypter", - "//fizz/protocol/test:test_messages", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/fizz/protocol/test/BUCK b/fizz/protocol/test/BUCK deleted file mode 100644 index 52a9fc3616d..00000000000 --- a/fizz/protocol/test/BUCK +++ /dev/null @@ -1,165 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "key_derivation", - srcs = [ - "KeySchedulerTest.cpp", - ], - deps = [ - "//fizz/crypto/test:mocks", - "//fizz/protocol:key_scheduler", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "cert_verifier", - srcs = [ - "DefaultCertificateVerifierTest.cpp", - ], - deps = [ - ":utilities", - "//fizz/protocol:default_certificate_verifier", - "//folly/portability:gtest", - "//folly/ssl:openssl_cert_utils", - ], -) - -cpp_unittest( - name = "handshake_context_test", - srcs = [ - "HandshakeContextTest.cpp", - ], - deps = [ - "//fizz/crypto:hmac_sha256", - "//fizz/protocol:handshake_context", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "cert_test", - srcs = [ - "CertTest.cpp", - ], - deps = [ - "//fizz/crypto/test:TestUtil", - "//fizz/protocol:openssl_certificate", - "//folly:string", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "fizz_base_test", - srcs = [ - "FizzBaseTest.cpp", - ], - deps = [ - "//fizz/protocol:fizz_base", - "//fizz/util:variant", - "//folly/futures:core", - "//folly/io/async:async_socket_exception", - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "exporter_test", - srcs = [ - "ExporterTest.cpp", - ], - deps = [ - "//fizz/protocol:exporter", - "//fizz/protocol:openssl_factory", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/crypto/aead/test:mocks", - "//fizz/crypto/exchange/test:mocks", - "//fizz/crypto/test:mocks", - "//fizz/protocol:async_fizz_base", - "//fizz/protocol:certificate", - "//fizz/protocol:certificate_verifier", - "//fizz/protocol:handshake_context", - "//fizz/protocol:key_scheduler", - "//fizz/protocol:openssl_factory", - "//fizz/protocol:types", - "//fizz/protocol/ech:decrypter", - "//fizz/record/test:mocks", - "//folly/io/async/test:mocks", - ], -) - -cpp_library( - name = "utilities", - headers = [ - "Utilities.h", - ], - exported_deps = [ - "//fizz/protocol:openssl_certificate", - ], -) - -cpp_library( - name = "matchers", - headers = [ - "Matchers.h", - ], - exported_deps = [ - "//folly/io:iobuf", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "openssl_factory_test", - srcs = [ - "OpenSSLFactoryTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//fizz/protocol:openssl_factory", - "//fizz/test:handshake_test_lib", - ], -) - -cpp_library( - name = "protocol_test", - headers = [ - "ProtocolTest.h", - ], - exported_deps = [ - ":matchers", - ":mocks", - "//fizz/protocol:actions", - "//fizz/record/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "test_messages", - headers = [ - "TestMessages.h", - ], - exported_deps = [ - ":protocol_test", - "//fizz/protocol:params", - "//fizz/record:record", - ], -) diff --git a/fizz/record/BUCK b/fizz/record/BUCK deleted file mode 100644 index 2ee73efc6e6..00000000000 --- a/fizz/record/BUCK +++ /dev/null @@ -1,88 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "record", - srcs = [ - "Types.cpp", - ], - headers = [ - "Extensions.h", - "Extensions-inl.h", - "Types.h", - "Types-inl.h", - ], - exported_deps = [ - "//fizz/protocol:events", - "//folly:conv", - "//folly:optional", - "//folly:string", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "record_layer", - srcs = [ - "RecordLayer.cpp", - ], - headers = [ - "RecordLayer.h", - ], - exported_deps = [ - ":record", - "//fizz/crypto/aead:aead", - "//fizz/protocol:params", - "//folly:optional", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "plaintext_record_layer", - srcs = [ - "PlaintextRecordLayer.cpp", - ], - headers = [ - "PlaintextRecordLayer.h", - ], - deps = [ - "//folly:string", - ], - exported_deps = [ - ":record_layer", - ], -) - -cpp_library( - name = "encrypted_record_layer", - srcs = [ - "EncryptedRecordLayer.cpp", - ], - headers = [ - "EncryptedRecordLayer.h", - ], - deps = [ - "//fizz/crypto/aead:iobuf", - ], - exported_deps = [ - ":buf_and_padding_policy", - ":record_layer", - "//fizz/crypto/aead:aead", - ], -) - -cpp_library( - name = "buf_and_padding_policy", - srcs = [ - "BufAndPaddingPolicy.cpp", - ], - headers = [ - "BufAndPaddingPolicy.h", - ], - exported_deps = [ - ":record", - "//folly/io:iobuf", - ], -) diff --git a/fizz/record/test/BUCK b/fizz/record/test/BUCK deleted file mode 100644 index 6b96a8f917f..00000000000 --- a/fizz/record/test/BUCK +++ /dev/null @@ -1,141 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/protocol:types", - "//fizz/record:encrypted_record_layer", - "//fizz/record:plaintext_record_layer", - "//folly/portability:gmock", - ], -) - -cpp_library( - name = "extension_tests_base", - headers = [ - "ExtensionTestsBase.h", - ], - exported_deps = [ - "//fizz/record:record", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "handshake_types_test", - srcs = [ - "HandshakeTypesTest.cpp", - ], - deps = [ - "//fizz/record:record", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "extensions_test", - srcs = [ - "ExtensionsTest.cpp", - ], - deps = [ - ":extension_tests_base", - "//fizz/record:record", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "types_test", - srcs = [ - "TypesTest.cpp", - ], - deps = [ - "//fizz/record:record", - "//folly/io:iobuf", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "plaintext_record_test", - srcs = [ - "PlaintextRecordTest.cpp", - ], - deps = [ - "//fizz/record:plaintext_record_layer", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "record_test", - srcs = [ - "RecordTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/record:record_layer", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "encrypted_record_test", - srcs = [ - "EncryptedRecordTest.cpp", - ], - deps = [ - "//fizz/crypto/aead/test:mocks", - "//fizz/record:buf_and_padding_policy", - "//fizz/record:encrypted_record_layer", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "buf_and_padding_policy_test", - srcs = [ - "BufAndPaddingPolicyTest.cpp", - ], - deps = [ - "//fizz/record:buf_and_padding_policy", - "//folly/portability:gtest", - ], -) - -cpp_binary( - name = "record_bench", - srcs = [ - "EncryptedRecordBench.cpp", - ], - compiler_flags = ["-Wno-unused-variable"], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto:utils", - "//fizz/crypto/aead:aegiscipher", - "//fizz/record:encrypted_record_layer", - "//folly:benchmark", - "//folly:random", - "//folly/init:init", - ], -) diff --git a/fizz/server/BUCK b/fizz/server/BUCK deleted file mode 100644 index 50c4b5cc406..00000000000 --- a/fizz/server/BUCK +++ /dev/null @@ -1,392 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "protocol", - srcs = [ - "ServerProtocol.cpp", - "State.cpp", - ], - headers = [ - "Actions.h", - "ServerProtocol.h", - "State.h", - ], - deps = [ - ":async_self_cert", - ":negotiator", - ":replay_cache", - "//fizz/crypto:utils", - "//fizz/crypto/exchange:async_key_exchange", - "//fizz/protocol:certificate_verifier", - "//fizz/protocol:protocol", - "//fizz/protocol:state_machine", - "//fizz/protocol/ech:decrypter", - "//fizz/record:plaintext_record_layer", - "//fizz/util:workarounds", - "//folly:overload", - "//folly/tracing:static_tracepoint", - ], - exported_deps = [ - ":fizz_server_context", - ":resumption_state", - ":server_extensions", - "//fizz/protocol:actions", - "//fizz/protocol:certificate", - "//fizz/protocol:key_scheduler", - "//fizz/protocol:params", - "//fizz/protocol:types", - "//fizz/protocol/ech:encrypted_client_hello", - "//fizz/record:record", - "//fizz/record:record_layer", - "//fizz/util:variant", - "//folly:optional", - "//folly:small_vector", - "//folly/futures:core", - ], - exported_external_deps = [ - ("boost", None, "boost_variant"), - ], -) - -cpp_library( - name = "negotiator", - headers = [ - "Negotiator.h", - ], - exported_deps = [ - "//folly:optional", - ], -) - -cpp_library( - name = "fizz_server_context", - srcs = [ - "FizzServerContext.cpp", - ], - headers = [ - "FizzServerContext.h", - ], - deps = [ - "//fizz/backend:openssl", - ], - exported_deps = [ - ":cert_manager", - ":cookie_cipher", - ":negotiator", - ":replay_cache", - ":ticket_cipher", - "//fizz/protocol:certificate", - "//fizz/protocol:factory", - "//fizz/protocol/clock:system_clock", - "//fizz/protocol/ech:decrypter", - "//fizz/record:record", - ], -) - -cpp_library( - name = "ticket_policy", - headers = [ - "TicketPolicy.h", - ], - exported_deps = [ - ":resumption_state", - "//fizz/protocol:types", - "//fizz/protocol/clock:system_clock", - ], -) - -cpp_library( - name = "ticket_cipher", - headers = [ - "TicketCipher.h", - ], - exported_deps = [ - ":resumption_state", - "//folly:optional", - "//folly/futures:core", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "dual_ticket_cipher", - headers = [ - "DualTicketCipher.h", - ], - exported_deps = [ - ":ticket_cipher", - ], -) - -cpp_library( - name = "ticket_codec", - srcs = [ - "TicketCodec.cpp", - ], - headers = [ - "TicketCodec.h", - "TicketCodec-inl.h", - ], - deps = [ - "//folly/io/async/ssl:openssl_transport_certificate", - "//folly/ssl:openssl_cert_utils", - ], - exported_deps = [ - ":fizz_server_context", - ":resumption_state", - "//fizz/record:record", - ], -) - -cpp_library( - name = "aead_ticket_cipher", - headers = [ - "AeadTicketCipher.h", - ], - exported_deps = [ - ":aead_token_cipher", - ":fizz_server_context", - ":ticket_cipher", - ":ticket_policy", - ], -) - -cpp_library( - name = "token_cipher", - headers = [ - "TokenCipher.h", - ], - exported_deps = [ - "//folly:optional", - "//folly:range", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "aead_token_cipher", - srcs = [ - "AeadTokenCipher.cpp", - ], - headers = [ - "AeadTokenCipher.h", - ], - deps = [ - "//fizz/crypto:random", - "//fizz/crypto:utils", - "//fizz/crypto/aead:aead", - ], - exported_deps = [ - ":token_cipher", - "//fizz/backend:openssl", - "//fizz/crypto:hkdf", - "//fizz/crypto:hmac_sha256", - "//fizz/crypto/aead:evpcipher", - "//fizz/record:record", - "//folly:optional", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "ticket_types", - headers = [ - "TicketTypes.h", - ], - exported_deps = [ - ":aead_ticket_cipher", - ":ticket_codec", - "//fizz/backend:openssl", - "//fizz/crypto:hkdf", - "//fizz/crypto/aead:evpcipher", - "//fizz/protocol:types", - ], -) - -cpp_library( - name = "resumption_state", - headers = [ - "ResumptionState.h", - ], - exported_deps = [ - "//fizz/protocol:certificate", - "//fizz/protocol:types", - "//fizz/record:record", - ], -) - -cpp_library( - name = "cookie_cipher", - srcs = [ - "CookieCipher.cpp", - ], - headers = [ - "CookieCipher.h", - ], - deps = [ - ":negotiator", - "//fizz/protocol:handshake_context", - ], - exported_deps = [ - "//fizz/protocol:factory", - "//fizz/protocol/ech:encrypted_client_hello", - "//fizz/record:record", - ], -) - -cpp_library( - name = "aead_cookie_cipher", - srcs = [ - "AeadCookieCipher.cpp", - ], - headers = [ - "AeadCookieCipher.h", - ], - deps = [ - "//fizz/record:record", - ], - exported_deps = [ - ":cookie_cipher", - ":fizz_server_context", - ":token_cipher", - ], - exported_external_deps = [ - ("boost", None, "boost_variant"), - ], -) - -cpp_library( - name = "cookie_types", - headers = [ - "CookieTypes.h", - ], - exported_deps = [ - ":aead_cookie_cipher", - "//fizz/backend:openssl", - "//fizz/crypto:hkdf", - "//fizz/protocol:types", - ], -) - -cpp_library( - name = "async_self_cert", - headers = [ - "AsyncSelfCert.h", - ], - exported_deps = [ - "//fizz/protocol:certificate", - "//folly/futures:core", - ], -) - -cpp_library( - name = "fizz_server", - srcs = [ - "FizzServer.cpp", - ], - headers = [ - "FizzServer.h", - "FizzServer-inl.h", - ], - exported_deps = [ - ":fizz_server_context", - ":protocol", - "//fizz/protocol:fizz_base", - "//fizz/util:workarounds", - "//folly:overload", - ], -) - -cpp_library( - name = "async_fizz_server", - headers = [ - "AsyncFizzServer.h", - "AsyncFizzServer-inl.h", - ], - exported_deps = [ - ":fizz_server", - ":fizz_server_context", - ":protocol", - "//fizz/protocol:async_fizz_base", - "//fizz/protocol:exporter", - "//fizz/util:tracer", - ], -) - -cpp_library( - name = "cert_manager", - srcs = [ - "CertManager.cpp", - ], - headers = [ - "CertManager.h", - ], - deps = [ - "//folly:string", - ], - exported_deps = [ - "//fizz/protocol:certificate", - ], -) - -cpp_library( - name = "server_extensions", - headers = [ - "ServerExtensions.h", - ], - exported_deps = [ - "//fizz/record:record", - ], -) - -cpp_library( - name = "replay_cache", - srcs = [ - "ReplayCache.cpp", - ], - headers = [ - "ReplayCache.h", - ], - exported_deps = [ - "//folly:range", - "//folly/futures:core", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "sliding_bloom_replay_cache", - srcs = [ - "SlidingBloomReplayCache.cpp", - ], - headers = [ - "SlidingBloomReplayCache.h", - ], - deps = [ - "//fizz/crypto:random", - "//folly:conv", - "//folly:range", - "//folly/hash:hash", - "//folly/io:iobuf", - "//folly/portability:unistd", - ], - exported_deps = [ - ":replay_cache", - "//folly/io/async:async_base", - ], -) - -cpp_library( - name = "multi_server_extensions", - srcs = [ - "MultiServerExtensions.cpp", - ], - headers = [ - "MultiServerExtensions.h", - ], - exported_deps = [ - ":server_extensions", - ], -) diff --git a/fizz/server/test/BUCK b/fizz/server/test/BUCK deleted file mode 100644 index 233090d37b5..00000000000 --- a/fizz/server/test/BUCK +++ /dev/null @@ -1,255 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_library( - name = "utils", - headers = [ - "Utils.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/aead:evpcipher", - "//fizz/protocol:default_certificate_verifier", - "//fizz/protocol:openssl_certificate", - "//fizz/protocol:openssl_factory", - "//fizz/protocol/test:utilities", - "//fizz/server:async_fizz_server", - "//fizz/server:ticket_types", - "//folly/io/async:server_socket", - ], -) - -cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//fizz/crypto/aead/test:mocks", - "//fizz/crypto/exchange/test:mocks", - "//fizz/protocol/test:mocks", - "//fizz/record/test:mocks", - "//fizz/server:async_fizz_server", - "//fizz/server:async_self_cert", - "//fizz/server:cookie_cipher", - "//fizz/server:protocol", - "//fizz/server:replay_cache", - "//fizz/server:server_extensions", - "//fizz/server:token_cipher", - "//folly/portability:gmock", - ], -) - -cpp_unittest( - name = "server_protocol_test", - srcs = [ - "ServerProtocolTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/crypto/exchange/test:mocks", - "//fizz/crypto/hpke/test:mocks", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/protocol/ech/test:test_util", - "//fizz/protocol/test:mocks", - "//fizz/protocol/test:protocol_test", - "//fizz/protocol/test:test_messages", - "//fizz/record:record", - "//fizz/record/test:mocks", - "//fizz/server:protocol", - "//fizz/util:workarounds", - "//folly/executors:manual_executor", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], - external_deps = [ - ("boost", None, "boost_variant"), - ], -) - -cpp_unittest( - name = "negotiator_test", - srcs = [ - "NegotiatorTest.cpp", - ], - deps = [ - "//fizz/server:negotiator", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "ticket_policy_test", - srcs = [ - "TicketPolicyTest.cpp", - ], - deps = [ - "//fizz/crypto/test:TestUtil", - "//fizz/crypto/test:mocks", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/server:ticket_policy", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "aead_ticket_cipher_test", - srcs = [ - "AeadTicketCipherTest.cpp", - ], - deps = [ - "//fizz/crypto/aead/test:mocks", - "//fizz/crypto/test:TestUtil", - "//fizz/crypto/test:mocks", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/protocol/test:mocks", - "//fizz/server:aead_ticket_cipher", - "//folly:string", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "dual_ticket_cipher_test", - srcs = [ - "DualTicketCipherTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/server:dual_ticket_cipher", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "ticket_codec_test", - srcs = [ - "TicketCodecTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/test:mocks", - "//fizz/server:ticket_codec", - "//folly/io/async/ssl:openssl_transport_certificate", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "sliding_bloom_replay_cache_test", - srcs = [ - "SlidingBloomReplayCacheTest.cpp", - ], - deps = [ - "//fizz/server:sliding_bloom_replay_cache", - "//folly:random", - "//folly/io:iobuf", - "//folly/io/async:scoped_event_base_thread", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/synchronization:baton", - ], -) - -cpp_unittest( - name = "cookie_cipher_test", - srcs = [ - "CookieCipherTest.cpp", - ], - deps = [ - "//fizz/protocol/test:mocks", - "//fizz/protocol/test:test_messages", - "//fizz/server:cookie_cipher", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "aead_cookie_cipher_test", - srcs = [ - "AeadCookieCipherTest.cpp", - ], - deps = [ - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/test:test_messages", - "//fizz/server:aead_token_cipher", - "//fizz/server:cookie_types", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "fizz_server_test", - srcs = [ - "FizzServerTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/server:fizz_server", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "async_fizz_server_test", - srcs = [ - "AsyncFizzServerTest.cpp", - ], - deps = [ - ":mocks", - "//fizz/extensions/tokenbinding:token_binding", - "//fizz/server:async_fizz_server", - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "cert_manager_test", - srcs = [ - "CertManagerTest.cpp", - ], - deps = [ - "//fizz/protocol/test:mocks", - "//fizz/server:cert_manager", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "multi_server_extensions_test", - srcs = [ - "MultiServerExtensionsTest.cpp", - ], - deps = [ - "//fizz/server:multi_server_extensions", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "aead_token_cipher_test", - srcs = ["AeadTokenCipherTest.cpp"], - deps = [ - "//fizz/server:aead_token_cipher", - "//folly:random", - "//folly/io:iobuf", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/fizz/test/BUCK b/fizz/test/BUCK deleted file mode 100644 index d90020570a0..00000000000 --- a/fizz/test/BUCK +++ /dev/null @@ -1,96 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "async_fizz_base_test", - srcs = [ - "AsyncFizzBaseTest.cpp", - ], - deps = [ - "//fizz/protocol:async_fizz_base", - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "handshake_test_lib", - headers = [ - "HandshakeTest.h", - "LocalTransport.h", - ], - exported_deps = [ - "//fizz/backend:openssl", - "//fizz/client:async_fizz_client", - "//fizz/client/test:mocks", - "//fizz/compression:zlib_certificate_compressor", - "//fizz/compression:zlib_certificate_decompressor", - "//fizz/crypto:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/extensions/tokenbinding:token_binding_client_extension", - "//fizz/extensions/tokenbinding:token_binding_context", - "//fizz/extensions/tokenbinding:token_binding_server_extension", - "//fizz/protocol/test:matchers", - "//fizz/protocol/test:utilities", - "//fizz/server:async_fizz_server", - "//fizz/server:cookie_types", - "//fizz/server:ticket_types", - "//fizz/server/test:mocks", - "//folly/io:iobuf", - "//folly/io/async:async_transport", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "handshake_test", - srcs = [ - "HandshakeTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":handshake_test_lib", - "//fizz/backend:openssl", - "//fizz/client:async_fizz_client", - "//fizz/client/test:mocks", - "//fizz/compression:zlib_certificate_compressor", - "//fizz/compression:zlib_certificate_decompressor", - "//fizz/crypto:utils", - "//fizz/crypto/test:TestUtil", - "//fizz/extensions/tokenbinding:token_binding_client_extension", - "//fizz/extensions/tokenbinding:token_binding_context", - "//fizz/extensions/tokenbinding:token_binding_server_extension", - "//fizz/protocol/test:matchers", - "//fizz/protocol/test:utilities", - "//fizz/server:async_fizz_server", - "//fizz/server:cookie_types", - "//fizz/server:ticket_types", - "//fizz/server/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_binary( - name = "bogo_shim", - srcs = [ - "BogoShim.cpp", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/client:async_fizz_client", - "//fizz/crypto:random", - "//fizz/crypto:utils", - "//fizz/server:async_fizz_server", - "//fizz/server:ticket_types", - "//folly:string", - "//folly/io/async:async_ssl_socket", - "//folly/io/async:ssl_context", - "//folly/portability:gflags", - ], -) diff --git a/fizz/tool/BUCK b/fizz/tool/BUCK deleted file mode 100644 index 068fb93cc96..00000000000 --- a/fizz/tool/BUCK +++ /dev/null @@ -1,100 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "tool_lib", - srcs = [ - "FizzCommandCommon.cpp", - ], - headers = [ - "FizzCommandCommon.h", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/exchange:x25519", - "//fizz/protocol:certificate", - "//folly:base64", - "//folly:string", - ], - exported_deps = [ - "//fizz/crypto/exchange:key_exchange", - "//fizz/protocol:async_fizz_base", - "//fizz/protocol/ech:encrypted_client_hello", - "//fizz/util:parse", - "//folly:file_util", - "//folly/experimental/io:io_uring_backend", - "//folly/io:iobuf", - "//folly/io/async:async_base", - "//folly/json:dynamic", - ], -) - -cpp_binary( - name = "fizz", - srcs = [ - "FizzClientCommand.cpp", - "FizzClientLoadGenCommand.cpp", - "FizzGenerateDelegatedCredentialCommand.cpp", - "FizzServerBenchmarkCommand.cpp", - "FizzServerCommand.cpp", - "Main.cpp", - ], - headers = [ - "CertificateVerifiers.h", - "Commands.h", - ], - preprocessor_flags = [ - "-DFIZZ_TOOL_ENABLE_BROTLI", - "-DFIZZ_TOOL_ENABLE_ZSTD", - "-DFIZZ_TOOL_ENABLE_IO_URING", - ], - deps = [ - ":tool_lib", - "//fizz/backend:openssl", - "//fizz/client:async_fizz_client", - "//fizz/client:psk_serialization_utils", - "//fizz/compression:brotli_certificate_compressor", - "//fizz/compression:brotli_certificate_decompressor", - "//fizz/compression:zlib_certificate_compressor", - "//fizz/compression:zlib_certificate_decompressor", - "//fizz/compression:zstd_certificate_compressor", - "//fizz/compression:zstd_certificate_decompressor", - "//fizz/crypto/hpke:utils", - "//fizz/experimental/batcher:batcher", - "//fizz/experimental/protocol:batch_signature_factory", - "//fizz/experimental/server:batch_signature_async_self_cert", - "//fizz/extensions/delegatedcred:delegated_credential_cert_manager", - "//fizz/extensions/delegatedcred:delegated_credential_client_extension", - "//fizz/extensions/delegatedcred:delegated_credential_factory", - "//fizz/extensions/delegatedcred:delegated_credential_pem_utils", - "//fizz/extensions/delegatedcred:delegated_credential_utils", - "//fizz/extensions/delegatedcred:self_delegated_credential", - "//fizz/protocol:certificate_verifier", - "//fizz/protocol:default_certificate_verifier", - "//fizz/protocol/test:utilities", - "//fizz/server:async_fizz_server", - "//fizz/server:sliding_bloom_replay_cache", - "//fizz/server:ticket_types", - "//fizz/util:fizz_util", - "//fizz/util:key_log_writer", - "//fizz/util:parse", - "//folly:conv", - "//folly:file_util", - "//folly:format", - "//folly/executors:io_thread_pool_executor", - "//folly/futures:core", - "//folly/io/async:async_ssl_socket", - "//folly/io/async:server_socket", - "//folly/io/async:ssl_context", - "//folly/io/async/ssl:openssl_transport_certificate", - "//folly/json:dynamic", - "//folly/portability:gflags", - "//folly/ssl:openssl_cert_utils", - "//folly/stats:histogram", - ], - external_deps = [ - "glog", - ], -) diff --git a/fizz/tool/test/BUCK b/fizz/tool/test/BUCK deleted file mode 100644 index 14ab7d0ea90..00000000000 --- a/fizz/tool/test/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "fizz_command_common", - srcs = [ - "FizzCommandCommonTest.cpp", - ], - deps = [ - "//fizz/protocol/ech:encrypted_client_hello", - "//fizz/tool:tool_lib", - "//folly/container:array", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/fizz/util/BUCK b/fizz/util/BUCK deleted file mode 100644 index 5429a97e49f..00000000000 --- a/fizz/util/BUCK +++ /dev/null @@ -1,90 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("secure_pipes") - -cpp_library( - name = "fizz_util", - srcs = - [ - "FizzUtil.cpp", - ], - headers = - [ - "FizzUtil.h", - ], - deps = [ - "//fizz/crypto/exchange:x25519", - "//fizz/server:ticket_types", - "//folly:file_util", - "//folly:format", - "//folly/portability:openssl", - ], - exported_deps = [ - "//fizz/extensions/tokenbinding:token_binding_context", - "//fizz/protocol:certificate", - "//fizz/server:fizz_server_context", - "//fizz/server:ticket_policy", - "//folly/io/async:password_in_file", - "//folly/io/async:ssl_context", - "//folly/ssl:openssl_cert_utils", - ], - external_deps = [ - ("libsodium", None, "sodium"), - ("openssl", None, "crypto"), - ], -) - -cpp_library( - name = "parse", - headers = [ - "Parse.h", - "Parse-inl.h", - ], - exported_deps = [ - "//fizz/record:record", - "//folly:range", - ], -) - -cpp_library( - name = "workarounds", - headers = [ - "Workarounds.h", - ], -) - -cpp_library( - name = "variant", - headers = [ - "Variant.h", - ], -) - -cpp_library( - name = "key_log_writer", - headers = [ - "KeyLogWriter.h", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//fizz/protocol:key_scheduler", - "//fizz/protocol:types", - "//folly:range", - ], -) - -cpp_library( - name = "tracer", - srcs = [ - "Tracing.cpp", - ], - headers = [ - "Tracing.h", - ], - deps = [ - "//folly/tracing:static_tracepoint", - ], - exported_deps = [ - ":key_log_writer", - ], -) diff --git a/fizz/util/test/BUCK b/fizz/util/test/BUCK deleted file mode 100644 index 02f71e54073..00000000000 --- a/fizz/util/test/BUCK +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("secure_pipes") - -cpp_unittest( - name = "fizz_util_test", - srcs = [ - "FizzUtilTest.cpp", - ], - deps = [ - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/protocol/test:mocks", - "//fizz/server:ticket_types", - "//fizz/util:fizz_util", - "//folly:file_util", - "//folly/experimental:test_util", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "variant_test", - srcs = [ - "FizzVariantTest.cpp", - ], - deps = [ - "//fizz/util:variant", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "key_log_writer_test", - srcs = [ - "KeyLogWriterTest.cpp", - ], - deps = [ - "//fizz/crypto:random", - "//fizz/util:key_log_writer", - "//folly/portability:gtest", - ], -) diff --git a/shim/BUCK b/shim/BUCK deleted file mode 100644 index 9e740dde55d..00000000000 --- a/shim/BUCK +++ /dev/null @@ -1,5 +0,0 @@ -load("@prelude//toolchains:demo.bzl", "system_demo_toolchains") - -# All the default toolchains, suitable for a quick demo or early prototyping. -# Most real projects should copy/paste the implementation to configure them. -system_demo_toolchains() diff --git a/shim/third-party/ocaml/BUCK b/shim/third-party/ocaml/BUCK deleted file mode 100644 index 2343d7b5ee9..00000000000 --- a/shim/third-party/ocaml/BUCK +++ /dev/null @@ -1,7 +0,0 @@ -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -prebuilt_cxx_library( - name = "ocaml-dev", - header_dirs = ["opam/lib/ocaml"], - header_only = True, - visibility = ["PUBLIC"], -) diff --git a/shim/third-party/proto/BUCK b/shim/third-party/proto/BUCK deleted file mode 100644 index d8381b74dc0..00000000000 --- a/shim/third-party/proto/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -load(":defs.bzl", "protoc_distribution") - -protoc_distribution( - name = "distribution", - version = "21.4", -) - -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -alias( - name = "protoc", - actual = ":distribution[protoc]", - visibility = ["PUBLIC"], -) - -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -alias( - name = "google_protobuf", - actual = ":distribution[google_protobuf]", - visibility = ["PUBLIC"], -)