1tink_module(hybrid::internal) 2 3tink_cc_library( 4 NAME hpke_context 5 SRCS 6 hpke_context.cc 7 hpke_context.h 8 DEPS 9 tink::hybrid::internal::hpke_context_boringssl 10 tink::hybrid::internal::hpke_util 11 absl::status 12 absl::strings 13 tink::util::secret_data 14 tink::util::status 15 tink::util::statusor 16 TAGS 17 exclude_if_openssl 18) 19 20tink_cc_library( 21 NAME hpke_context_boringssl 22 SRCS 23 hpke_context_boringssl.cc 24 hpke_context_boringssl.h 25 DEPS 26 tink::hybrid::internal::hpke_util 27 tink::hybrid::internal::hpke_util_boringssl 28 absl::strings 29 crypto 30 tink::internal::ssl_unique_ptr 31 tink::subtle::subtle_util 32 tink::util::secret_data 33 tink::util::statusor 34 TAGS 35 exclude_if_openssl 36) 37 38tink_cc_library( 39 NAME hpke_decrypt 40 SRCS 41 hpke_decrypt.cc 42 hpke_decrypt.h 43 DEPS 44 tink::hybrid::internal::hpke_context 45 tink::hybrid::internal::hpke_util 46 absl::status 47 tink::core::hybrid_decrypt 48 tink::util::secret_data 49 tink::util::status 50 tink::util::statusor 51 tink::proto::hpke_cc_proto 52 TAGS 53 exclude_if_openssl 54) 55 56tink_cc_library( 57 NAME hpke_decrypt_boringssl 58 SRCS 59 hpke_decrypt_boringssl.cc 60 hpke_decrypt_boringssl.h 61 DEPS 62 tink::hybrid::internal::hpke_key_boringssl 63 tink::hybrid::internal::hpke_util_boringssl 64 absl::core_headers 65 absl::status 66 absl::strings 67 crypto 68 tink::subtle::subtle_util 69 tink::util::status 70 tink::util::statusor 71 tink::proto::hpke_cc_proto 72 TAGS 73 exclude_if_openssl 74) 75 76tink_cc_library( 77 NAME hpke_encrypt 78 SRCS 79 hpke_encrypt.cc 80 hpke_encrypt.h 81 DEPS 82 tink::hybrid::internal::hpke_context 83 tink::hybrid::internal::hpke_util 84 absl::status 85 tink::core::hybrid_encrypt 86 tink::util::statusor 87 tink::proto::hpke_cc_proto 88 TAGS 89 exclude_if_openssl 90) 91 92tink_cc_library( 93 NAME hpke_encrypt_boringssl 94 SRCS 95 hpke_encrypt_boringssl.cc 96 hpke_encrypt_boringssl.h 97 DEPS 98 tink::hybrid::internal::hpke_util_boringssl 99 absl::algorithm_container 100 absl::core_headers 101 absl::status 102 absl::strings 103 crypto 104 tink::subtle::subtle_util 105 tink::util::status 106 tink::util::statusor 107 tink::proto::hpke_cc_proto 108 TAGS 109 exclude_if_openssl 110) 111 112tink_cc_library( 113 NAME hpke_key_boringssl 114 SRCS 115 hpke_key_boringssl.cc 116 hpke_key_boringssl.h 117 DEPS 118 tink::hybrid::internal::hpke_util_boringssl 119 absl::core_headers 120 absl::status 121 crypto 122 tink::util::status 123 tink::util::statusor 124 tink::proto::hpke_cc_proto 125 TAGS 126 exclude_if_openssl 127) 128 129tink_cc_library( 130 NAME hpke_key_manager_util 131 SRCS 132 hpke_key_manager_util.cc 133 hpke_key_manager_util.h 134 DEPS 135 absl::status 136 tink::util::status 137 tink::util::validation 138 tink::proto::hpke_cc_proto 139 TAGS 140 exclude_if_openssl 141) 142 143tink_cc_library( 144 NAME hpke_private_key_manager 145 SRCS 146 hpke_private_key_manager.cc 147 hpke_private_key_manager.h 148 DEPS 149 tink::hybrid::internal::hpke_decrypt 150 tink::hybrid::internal::hpke_key_manager_util 151 absl::status 152 tink::core::key_type_manager 153 tink::core::private_key_type_manager 154 tink::core::hybrid_decrypt 155 tink::core::key_manager 156 tink::internal::ec_util 157 tink::util::constants 158 tink::util::status 159 tink::util::statusor 160 tink::util::validation 161 tink::proto::hpke_cc_proto 162 tink::proto::tink_cc_proto 163 TAGS 164 exclude_if_openssl 165) 166 167tink_cc_library( 168 NAME hpke_public_key_manager 169 SRCS 170 hpke_public_key_manager.cc 171 hpke_public_key_manager.h 172 DEPS 173 tink::hybrid::internal::hpke_encrypt 174 tink::hybrid::internal::hpke_key_manager_util 175 absl::memory 176 absl::strings 177 tink::core::key_type_manager 178 tink::core::hybrid_encrypt 179 tink::core::key_manager 180 tink::util::constants 181 tink::util::errors 182 tink::util::protobuf_helper 183 tink::util::status 184 tink::util::statusor 185 tink::proto::hpke_cc_proto 186 tink::proto::tink_cc_proto 187 TAGS 188 exclude_if_openssl 189) 190 191tink_cc_library( 192 NAME hpke_test_util 193 SRCS 194 hpke_test_util.cc 195 hpke_test_util.h 196 DEPS 197 tink::hybrid::internal::hpke_util 198 absl::status 199 absl::strings 200 tink::util::status 201 tink::util::statusor 202 tink::proto::hpke_cc_proto 203 TESTONLY 204 TAGS 205 exclude_if_openssl 206) 207 208tink_cc_library( 209 NAME hpke_util 210 SRCS 211 hpke_util.cc 212 hpke_util.h 213 DEPS 214 absl::strings 215 tink::internal::ec_util 216 tink::subtle::common_enums 217 tink::util::statusor 218 tink::proto::hpke_cc_proto 219 TAGS 220 exclude_if_openssl 221) 222 223tink_cc_library( 224 NAME hpke_util_boringssl 225 SRCS 226 hpke_util_boringssl.cc 227 hpke_util_boringssl.h 228 DEPS 229 tink::hybrid::internal::hpke_util 230 absl::status 231 absl::strings 232 crypto 233 tink::util::status 234 tink::util::statusor 235 tink::proto::hpke_cc_proto 236 TAGS 237 exclude_if_openssl 238) 239 240tink_cc_library( 241 NAME test_hpke_context_boringssl 242 SRCS 243 test_hpke_context_boringssl.cc 244 test_hpke_context_boringssl.h 245 DEPS 246 tink::hybrid::internal::hpke_context_boringssl 247 tink::hybrid::internal::hpke_util 248 tink::hybrid::internal::hpke_util_boringssl 249 absl::strings 250 crypto 251 tink::internal::ssl_unique_ptr 252 tink::util::statusor 253 TESTONLY 254 TAGS 255 exclude_if_openssl 256) 257 258# tests 259 260tink_cc_test( 261 NAME hpke_context_test 262 SRCS 263 hpke_context_test.cc 264 DEPS 265 tink::hybrid::internal::hpke_context 266 tink::hybrid::internal::hpke_test_util 267 tink::hybrid::internal::hpke_util 268 gmock 269 tink::util::secret_data 270 tink::util::statusor 271 tink::util::test_matchers 272 TAGS 273 exclude_if_openssl 274) 275 276tink_cc_test( 277 NAME hpke_context_boringssl_test 278 SRCS 279 hpke_context_boringssl_test.cc 280 DEPS 281 tink::hybrid::internal::hpke_context_boringssl 282 tink::hybrid::internal::hpke_test_util 283 tink::hybrid::internal::hpke_util 284 tink::hybrid::internal::test_hpke_context_boringssl 285 gmock 286 absl::status 287 crypto 288 tink::util::secret_data 289 tink::util::test_matchers 290 TAGS 291 exclude_if_openssl 292) 293 294tink_cc_test( 295 NAME hpke_decrypt_boringssl_test 296 SRCS 297 hpke_decrypt_boringssl_test.cc 298 DEPS 299 tink::hybrid::internal::hpke_decrypt_boringssl 300 tink::hybrid::internal::hpke_test_util 301 gmock 302 absl::status 303 absl::strings 304 crypto 305 tink::util::status 306 tink::util::test_matchers 307 tink::util::test_util 308 tink::proto::hpke_cc_proto 309 TAGS 310 exclude_if_openssl 311) 312 313tink_cc_test( 314 NAME hpke_decrypt_test 315 SRCS 316 hpke_decrypt_test.cc 317 DEPS 318 tink::hybrid::internal::hpke_decrypt 319 tink::hybrid::internal::hpke_encrypt 320 tink::hybrid::internal::hpke_test_util 321 gmock 322 absl::status 323 absl::strings 324 tink::util::statusor 325 tink::util::test_matchers 326 tink::proto::hpke_cc_proto 327 TAGS 328 exclude_if_openssl 329) 330 331tink_cc_test( 332 NAME hpke_encrypt_boringssl_test 333 SRCS 334 hpke_encrypt_boringssl_test.cc 335 DEPS 336 tink::hybrid::internal::hpke_encrypt_boringssl 337 tink::hybrid::internal::hpke_test_util 338 gmock 339 absl::status 340 absl::strings 341 crypto 342 tink::util::status 343 tink::util::test_matchers 344 tink::util::test_util 345 tink::proto::hpke_cc_proto 346 TAGS 347 exclude_if_openssl 348) 349 350tink_cc_test( 351 NAME hpke_encrypt_test 352 SRCS 353 hpke_encrypt_test.cc 354 DEPS 355 tink::hybrid::internal::hpke_encrypt 356 tink::hybrid::internal::hpke_test_util 357 tink::hybrid::internal::hpke_util 358 gmock 359 absl::status 360 absl::strings 361 tink::util::test_matchers 362 tink::proto::hpke_cc_proto 363 TAGS 364 exclude_if_openssl 365) 366 367tink_cc_test( 368 NAME hpke_key_boringssl_test 369 SRCS 370 hpke_key_boringssl_test.cc 371 DEPS 372 tink::hybrid::internal::hpke_key_boringssl 373 tink::hybrid::internal::hpke_test_util 374 gmock 375 absl::status 376 absl::strings 377 crypto 378 tink::util::status 379 tink::util::test_matchers 380 tink::util::test_util 381 tink::proto::hpke_cc_proto 382 TAGS 383 exclude_if_openssl 384) 385 386tink_cc_test( 387 NAME hpke_key_manager_util_test 388 SRCS 389 hpke_key_manager_util_test.cc 390 DEPS 391 tink::hybrid::internal::hpke_key_manager_util 392 tink::hybrid::internal::hpke_test_util 393 gmock 394 absl::status 395 tink::util::status 396 tink::util::test_matchers 397 TAGS 398 exclude_if_openssl 399) 400 401tink_cc_test( 402 NAME hpke_private_key_manager_test 403 SRCS 404 hpke_private_key_manager_test.cc 405 DEPS 406 tink::hybrid::internal::hpke_encrypt 407 tink::hybrid::internal::hpke_private_key_manager 408 gmock 409 absl::status 410 tink::core::hybrid_encrypt 411 tink::subtle::hybrid_test_util 412 tink::util::status 413 tink::util::statusor 414 tink::util::test_matchers 415 tink::util::test_util 416 tink::proto::hpke_cc_proto 417 tink::proto::tink_cc_proto 418 TAGS 419 exclude_if_openssl 420) 421 422tink_cc_test( 423 NAME hpke_public_key_manager_test 424 SRCS 425 hpke_public_key_manager_test.cc 426 DEPS 427 tink::hybrid::internal::hpke_public_key_manager 428 tink::hybrid::internal::hpke_test_util 429 gmock 430 absl::status 431 tink::util::test_matchers 432 tink::util::test_util 433 tink::proto::hpke_cc_proto 434 TAGS 435 exclude_if_openssl 436) 437 438tink_cc_test( 439 NAME hpke_util_boringssl_test 440 SRCS 441 hpke_util_boringssl_test.cc 442 DEPS 443 tink::hybrid::internal::hpke_test_util 444 tink::hybrid::internal::hpke_util 445 tink::hybrid::internal::hpke_util_boringssl 446 gmock 447 crypto 448 tink::util::test_matchers 449 tink::util::test_util 450 tink::proto::hpke_cc_proto 451 TAGS 452 exclude_if_openssl 453) 454 455tink_cc_test( 456 NAME hpke_util_test 457 SRCS 458 hpke_util_test.cc 459 DEPS 460 tink::hybrid::internal::hpke_test_util 461 tink::hybrid::internal::hpke_util 462 gmock 463 tink::util::test_matchers 464 tink::proto::hpke_cc_proto 465 TAGS 466 exclude_if_openssl 467) 468