This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
BUILD.bazel
129 lines (115 loc) · 2.93 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
package(default_visibility = ["//:__subpackages__"])
licenses(["notice"])
cc_library(
name = "tink_config",
srcs = ["tink_config.cc"],
hdrs = ["tink_config.h"],
include_prefix = "tink/config",
visibility = ["//visibility:public"],
deps = [
"//:config",
"//:key_manager",
"//:registry",
"//daead:deterministic_aead_config",
"//hybrid:hybrid_config",
"//prf:prf_config",
"//proto:config_cc_proto",
"//signature:signature_config",
"//streamingaead:streaming_aead_config",
"//util:status",
"@com_google_absl//absl/base:core_headers",
],
)
cc_library(
name = "config_util",
srcs = ["config_util.cc"],
hdrs = ["config_util.h"],
include_prefix = "tink/config",
deps = ["//proto:config_cc_proto"],
)
bool_flag(
name = "use_only_fips",
build_setting_default = False,
)
bool_flag(
name = "tink_use_absl_status",
build_setting_default = False,
)
config_setting(
name = "absl_status_enabled",
flag_values = {"//config:tink_use_absl_status": "True"},
visibility = ["//visibility:public"],
)
bool_flag(
name = "tink_use_absl_statusor",
build_setting_default = False,
)
config_setting(
name = "absl_statusor_enabled",
flag_values = {"//config:tink_use_absl_statusor": "True"},
visibility = ["//visibility:public"],
)
cc_library(
name = "tink_fips",
srcs = ["tink_fips.cc"],
hdrs = ["tink_fips.h"],
include_prefix = "tink/config",
visibility = ["//visibility:public"],
deps = [
"//internal:fips_utils",
"//internal:registry_impl",
"//util:status",
"@boringssl//:crypto",
"@com_google_absl//absl/base:core_headers",
],
)
# tests
cc_test(
name = "tink_config_test",
size = "small",
srcs = ["tink_config_test.cc"],
deps = [
":tink_config",
"//:aead",
"//:config",
"//:deterministic_aead",
"//:hybrid_decrypt",
"//:hybrid_encrypt",
"//:mac",
"//:registry",
"//:streaming_aead",
"//:tink_cc",
"//aead:aes_gcm_key_manager",
"//util:status",
"//util:test_matchers",
"@com_google_absl//absl/status",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "config_util_test",
size = "small",
srcs = ["config_util_test.cc"],
deps = [
":config_util",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "tink_fips_test",
size = "small",
srcs = ["tink_fips_test.cc"],
tags = ["fips"],
deps = [
":tink_fips",
"//:registry",
"//aead:aead_config",
"//internal:fips_utils",
"//util:status",
"//util:test_matchers",
"@boringssl//:crypto",
"@com_google_absl//absl/status",
"@com_google_googletest//:gtest_main",
],
)