Skip to content

Commit

Permalink
Add internal proto serialization library for PRF-based key derivation…
Browse files Browse the repository at this point in the history
… keys.

PiperOrigin-RevId: 706726904
Change-Id: I403bb959f42235b0e9fb8aab1b3f6ace8f5b74e4
  • Loading branch information
willinois authored and copybara-github committed Dec 16, 2024
1 parent 6cac543 commit d942b87
Show file tree
Hide file tree
Showing 4 changed files with 656 additions and 2 deletions.
22 changes: 22 additions & 0 deletions tink/keyderivation/internal/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -294,21 +294,35 @@ cc_library(
deps = [
"//proto:prf_based_deriver_cc_proto",
"//proto:tink_cc_proto",
"//tink:key",
"//tink:parameters",
"//tink:partial_key_access",
"//tink:restricted_data",
"//tink:secret_key_access_token",
"//tink/internal:call_with_core_dump_protection",
"//tink/internal:global_serialization_registry",
"//tink/internal:key_parser",
"//tink/internal:key_serializer",
"//tink/internal:mutable_serialization_registry",
"//tink/internal:parameters_parser",
"//tink/internal:parameters_serializer",
"//tink/internal:proto_key_serialization",
"//tink/internal:proto_parameters_serialization",
"//tink/internal:serialization",
"//tink/internal:serialization_registry",
"//tink/keyderivation:prf_based_key_derivation_key",
"//tink/keyderivation:prf_based_key_derivation_parameters",
"//tink/prf:prf_key",
"//tink/prf:prf_parameters",
"//tink/util:secret_data",
"//tink/util:secret_proto",
"//tink/util:status",
"//tink/util:statusor",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:optional",
],
)

Expand All @@ -321,19 +335,27 @@ cc_test(
"//proto:prf_based_deriver_cc_proto",
"//proto:tink_cc_proto",
"//proto:xchacha20_poly1305_cc_proto",
"//tink:key",
"//tink:parameters",
"//tink:partial_key_access",
"//tink:restricted_data",
"//tink/aead:xchacha20_poly1305_parameters",
"//tink/internal:internal_insecure_secret_key_access",
"//tink/internal:mutable_serialization_registry",
"//tink/internal:proto_key_serialization",
"//tink/internal:proto_parameters_serialization",
"//tink/internal:serialization",
"//tink/internal:serialization_registry",
"//tink/keyderivation:prf_based_key_derivation_key",
"//tink/keyderivation:prf_based_key_derivation_parameters",
"//tink/prf:aes_cmac_prf_key",
"//tink/prf:aes_cmac_prf_parameters",
"//tink/util:statusor",
"//tink/util:test_matchers",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:optional",
"@com_google_googletest//:gtest_main",
],
)
22 changes: 22 additions & 0 deletions tink/keyderivation/internal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,32 @@ tink_cc_library(
prf_based_key_derivation_proto_serialization_impl.h
DEPS
absl::check
absl::memory
absl::status
absl::string_view
absl::optional
tink::core::key
tink::core::parameters
tink::core::partial_key_access
tink::core::restricted_data
tink::core::secret_key_access_token
tink::internal::call_with_core_dump_protection
tink::internal::global_serialization_registry
tink::internal::key_parser
tink::internal::key_serializer
tink::internal::mutable_serialization_registry
tink::internal::parameters_parser
tink::internal::parameters_serializer
tink::internal::proto_key_serialization
tink::internal::proto_parameters_serialization
tink::internal::serialization
tink::internal::serialization_registry
tink::keyderivation::prf_based_key_derivation_key
tink::keyderivation::prf_based_key_derivation_parameters
tink::prf::prf_key
tink::prf::prf_parameters
tink::util::secret_data
tink::util::secret_proto
tink::util::status
tink::util::statusor
tink::proto::prf_based_deriver_cc_proto
Expand All @@ -315,13 +329,21 @@ tink_cc_test(
absl::check
absl::status
absl::string_view
absl::optional
tink::core::key
tink::core::parameters
tink::core::partial_key_access
tink::core::restricted_data
tink::aead::xchacha20_poly1305_parameters
tink::internal::internal_insecure_secret_key_access
tink::internal::mutable_serialization_registry
tink::internal::proto_key_serialization
tink::internal::proto_parameters_serialization
tink::internal::serialization
tink::internal::serialization_registry
tink::keyderivation::prf_based_key_derivation_key
tink::keyderivation::prf_based_key_derivation_parameters
tink::prf::aes_cmac_prf_key
tink::prf::aes_cmac_prf_parameters
tink::util::statusor
tink::util::test_matchers
Expand Down
Loading

0 comments on commit d942b87

Please sign in to comment.