blob: 6f83d30077e638330b383154fdd7856953c72d36 [file] [log] [blame]
load("//tools/build_defs:javac.bzl", "JAVACOPTS_OSS")
licenses(["notice"])
package(default_visibility = ["//tools/build_defs:internal_pkg"])
java_library(
name = "hkdf_prf_key_manager",
srcs = ["HkdfPrfKeyManager.java"],
javacopts = JAVACOPTS_OSS,
deps = [
"//java/src/main/java/com/google/crypto/tink:core",
"//java/src/main/java/com/google/crypto/tink/subtle",
"//java/src/main/java/com/google/crypto/tink/subtle/prf:hkdf_streaming_prf",
"//java/src/main/java/com/google/crypto/tink/subtle/prf:streaming_prf",
"//proto:common_java_proto",
"//proto:hkdf_prf_java_proto",
"//proto:tink_java_proto",
"@com_google_protobuf_javalite//:protobuf_javalite",
],
)
java_library(
name = "prf_key_templates",
srcs = ["PrfKeyTemplates.java"],
javacopts = JAVACOPTS_OSS,
deps = [
":hkdf_prf_key_manager",
"//proto:common_java_proto",
"//proto:hkdf_prf_java_proto",
"//proto:tink_java_proto",
],
)
java_library(
name = "prf_config",
srcs = ["PrfConfig.java"],
javacopts = JAVACOPTS_OSS,
deps = [":hkdf_prf_key_manager"],
)
java_library(
name = "hkdf_prf_key_manager-android",
srcs = ["HkdfPrfKeyManager.java"],
javacopts = JAVACOPTS_OSS,
deps = [
"//java/src/main/java/com/google/crypto/tink:core-android",
"//java/src/main/java/com/google/crypto/tink/subtle",
"//java/src/main/java/com/google/crypto/tink/subtle/prf:hkdf_streaming_prf",
"//java/src/main/java/com/google/crypto/tink/subtle/prf:streaming_prf",
"//proto:common_java_proto_lite",
"//proto:hkdf_prf_java_proto_lite",
"//proto:tink_java_proto_lite",
"@com_google_protobuf_javalite//:protobuf_javalite",
],
)
java_library(
name = "prf_key_templates-android",
srcs = ["PrfKeyTemplates.java"],
javacopts = JAVACOPTS_OSS,
deps = [
":hkdf_prf_key_manager-android",
"//proto:common_java_proto_lite",
"//proto:hkdf_prf_java_proto_lite",
"//proto:tink_java_proto_lite",
],
)
java_library(
name = "prf_config-android",
srcs = ["PrfConfig.java"],
javacopts = JAVACOPTS_OSS,
deps = [":hkdf_prf_key_manager-android"],
)