/external/tink/python/tink/jwt/ |
D | _jwk_set_converter.py | 243 proto_key = _convert_to_ecdsa_key(key) 245 proto_key = _convert_to_rsa_ssa_pkcs1_key(key) 247 proto_key = _convert_to_rsa_ssa_pss_key(key) 251 proto_key.key_id = new_id 252 proto_keyset.key.append(proto_key) 298 proto_key = tink_pb2.Keyset.Key() 299 proto_key.key_data.type_url = _JWT_ECDSA_PUBLIC_KEY_TYPE 300 proto_key.key_data.value = ecdsa_public_key.SerializeToString() 301 proto_key.key_data.key_material_type = tink_pb2.KeyData.ASYMMETRIC_PUBLIC 302 proto_key.output_prefix_type = tink_pb2.RAW [all …]
|
/external/tink/cc/mac/ |
D | aes_cmac_proto_serialization.cc | 146 google::crypto::tink::AesCmacKey proto_key; in ParseKey() local 149 if (!proto_key.ParseFromString( in ParseKey() 154 if (proto_key.version() != 0) { in ParseKey() 164 proto_key.key_value().length(), proto_key.params().tag_size(), *variant); in ParseKey() 168 *parameters, RestrictedData(proto_key.key_value(), *token), in ParseKey() 187 google::crypto::tink::AesCmacKey proto_key; in SerializeKey() local 188 *proto_key.mutable_params() = proto_params; in SerializeKey() 189 proto_key.set_version(0); in SerializeKey() 191 proto_key.set_key_value(std::string(restricted_input->GetSecret(*token))); in SerializeKey() 198 RestrictedData(proto_key.SerializeAsString(), *token); in SerializeKey()
|
D | hmac_proto_serialization.cc | 199 google::crypto::tink::HmacKey proto_key; in ParseKey() local 202 if (!proto_key.ParseFromString( in ParseKey() 207 if (proto_key.version() != 0) { in ParseKey() 216 ToHashType(proto_key.params().hash()); in ParseKey() 220 proto_key.key_value().length(), proto_key.params().tag_size(), *hash_type, in ParseKey() 225 RestrictedData(proto_key.key_value(), *token), in ParseKey() 245 google::crypto::tink::HmacKey proto_key; in SerializeKey() local 246 *proto_key.mutable_params() = proto_params; in SerializeKey() 247 proto_key.set_version(0); in SerializeKey() 249 proto_key.set_key_value(std::string(restricted_input->GetSecret(*token))); in SerializeKey() [all …]
|
D | hmac_proto_serialization_test.cc | 374 google::crypto::tink::HmacKey proto_key; in TEST_P() local 376 ASSERT_THAT(proto_key.ParseFromString(std::string( in TEST_P() 380 EXPECT_THAT(proto_key.key_value().size(), Eq(test_case.key_size)); in TEST_P() 381 EXPECT_THAT(proto_key.params().tag_size(), Eq(test_case.tag_size)); in TEST_P() 382 EXPECT_THAT(proto_key.params().hash(), Eq(test_case.proto_hash_type)); in TEST_P()
|
D | aes_cmac_proto_serialization_test.cc | 339 google::crypto::tink::AesCmacKey proto_key; in TEST_P() local 341 ASSERT_THAT(proto_key.ParseFromString(std::string( in TEST_P() 345 EXPECT_THAT(proto_key.key_value().size(), Eq(test_case.key_size)); in TEST_P() 346 EXPECT_THAT(proto_key.params().tag_size(), Eq(test_case.tag_size)); in TEST_P()
|
/external/tink/cc/signature/ |
D | ed25519_proto_serialization.cc | 142 google::crypto::tink::Ed25519PublicKey proto_key; in ParsePublicKey() local 145 if (!proto_key.ParseFromString(std::string( in ParsePublicKey() 150 if (proto_key.version() != 0) { in ParsePublicKey() 167 return Ed25519PublicKey::Create(*parameters, proto_key.key_value(), in ParsePublicKey() 183 google::crypto::tink::Ed25519PrivateKey proto_key; in ParsePrivateKey() local 186 if (!proto_key.ParseFromString( in ParsePrivateKey() 191 if (proto_key.version() != 0) { in ParsePrivateKey() 209 *parameters, proto_key.public_key().key_value(), in ParsePrivateKey() 216 *public_key, RestrictedData(proto_key.key_value(), *token), in ParsePrivateKey() 238 google::crypto::tink::Ed25519PublicKey proto_key; in SerializePublicKey() local [all …]
|
D | ed25519_proto_serialization_test.cc | 311 google::crypto::tink::Ed25519PublicKey proto_key; in TEST_P() local 313 ASSERT_THAT(proto_key.ParseFromString(std::string( in TEST_P() 317 EXPECT_THAT(proto_key.version(), Eq(0)); in TEST_P() 318 EXPECT_THAT(proto_key.key_value(), Eq(raw_key_bytes)); in TEST_P() 501 google::crypto::tink::Ed25519PrivateKey proto_key; in TEST_P() local 503 ASSERT_THAT(proto_key.ParseFromString(std::string( in TEST_P() 507 EXPECT_THAT(proto_key.version(), Eq(0)); in TEST_P() 508 EXPECT_THAT(proto_key.key_value(), Eq((*key_pair)->private_key)); in TEST_P() 509 EXPECT_THAT(proto_key.has_public_key(), IsTrue()); in TEST_P() 510 EXPECT_THAT(proto_key.public_key().version(), Eq(0)); in TEST_P() [all …]
|
/external/tink/cc/daead/ |
D | aes_siv_proto_serialization.cc | 142 google::crypto::tink::AesSivKey proto_key; in ParseKey() local 145 if (!proto_key.ParseFromString( in ParseKey() 150 if (proto_key.version() != 0) { in ParseKey() 160 AesSivParameters::Create(proto_key.key_value().length(), *variant); in ParseKey() 164 *parameters, RestrictedData(proto_key.key_value(), *token), in ParseKey() 178 google::crypto::tink::AesSivKey proto_key; in SerializeKey() local 179 proto_key.set_version(0); in SerializeKey() 181 proto_key.set_key_value(std::string(restricted_input->GetSecret(*token))); in SerializeKey() 188 RestrictedData(proto_key.SerializeAsString(), *token); in SerializeKey()
|
/external/tink/cc/aead/ |
D | aes_gcm_proto_serialization.cc | 168 google::crypto::tink::AesGcmKey proto_key; in ParseKey() local 171 if (!proto_key.ParseFromString( in ParseKey() 176 if (proto_key.version() != 0) { in ParseKey() 190 .SetKeySizeInBytes(proto_key.key_value().length()) in ParseKey() 197 *parameters, RestrictedData(proto_key.key_value(), *token), in ParseKey() 214 google::crypto::tink::AesGcmKey proto_key; in SerializeKey() local 215 proto_key.set_version(0); in SerializeKey() 217 proto_key.set_key_value(std::string(restricted_input->GetSecret(*token))); in SerializeKey() 224 RestrictedData(proto_key.SerializeAsString(), *token); in SerializeKey()
|
/external/tink/cc/core/ |
D | keyset_handle.cc | 123 const Keyset::Key& proto_key = get_keyset().key(index); in ValidateAt() local 124 OutputPrefixType output_prefix_type = proto_key.output_prefix_type(); in ValidateAt() 127 id_requirement = proto_key.key_id(); in ValidateAt() 130 if (!internal::IsPrintableAscii(proto_key.key_data().type_url())) { in ValidateAt() 136 internal::FromKeyStatusType(proto_key.status()); in ValidateAt() 150 Keyset::Key proto_key = keyset.key(i); in Validate() local 151 if (proto_key.key_id() == keyset.primary_key_id()) { in Validate() 153 if (proto_key.status() != KeyStatusType::ENABLED) { in Validate() 220 const Keyset::Key& proto_key, uint32_t primary_key_id) { in CreateEntry() argument 222 ToProtoKeySerialization(proto_key); in CreateEntry() [all …]
|
D | keyset_handle_builder_test.cc | 568 util::StatusOr<internal::LegacyProtoKey> proto_key = in TEST_F() local 571 ASSERT_THAT(proto_key.status(), IsOk()); in TEST_F() 574 absl::make_unique<internal::LegacyProtoKey>(std::move(*proto_key)), in TEST_F() 616 util::StatusOr<internal::LegacyProtoKey> proto_key = in TEST_F() local 619 ASSERT_THAT(proto_key.status(), IsOk()); in TEST_F() 623 *proto_key, KeyStatus::kEnabled, /*is_primary=*/true); in TEST_F() 720 util::StatusOr<internal::LegacyProtoKey> proto_key = in TEST_F() local 723 ASSERT_THAT(proto_key.status(), IsOk()); in TEST_F() 727 *proto_key, KeyStatus::kEnabled, /*is_primary=*/true); in TEST_F()
|
/external/tensorflow/tensorflow/core/tpu/kernels/ |
D | tpu_compilation_cache_lookup.h | 46 virtual Status Lookup(const string& proto_key, 50 virtual Status Lookup(const string& proto_key, in Lookup() argument 52 return Lookup(proto_key, std::move(entry), in Lookup()
|
D | tpu_compilation_cache_local_lookup.cc | 31 const string& proto_key, std::unique_ptr<CompilationCacheEntryRef>* entry, in Lookup() argument 35 Status s = cache_->Lookup(proto_key, entry); in Lookup() 36 VLOG(1) << "Looked up key " << proto_key << " in local subgraph cache status " in Lookup()
|
D | tpu_compilation_cache_interface.cc | 270 for (const std::string& key : entry->proto_key) { in DiscardEntryRef() 369 std::vector<std::string>* proto_key, std::vector<std::string>* sharding_key, in CompileIfKeyAbsent() argument 375 subgraph_key, session_metadata, per_step_ref_holder, uid, proto_key, in CompileIfKeyAbsent() 407 std::vector<std::string>* proto_key, std::vector<std::string>* sharding_key, in CompileIfKeyAbsentHelper() argument 506 *proto_key = entry->proto_key; in CompileIfKeyAbsentHelper() 556 *keys = iter->second->proto_key; in GetKeysFromUid() 586 const std::string& proto_key, in Lookup() argument 594 const auto iter = entries_by_proto_key_.find(proto_key); in Lookup() 596 return errors::NotFound("No proto found for key ", proto_key); in Lookup()
|
D | tpu_compile_op_common.cc | 285 std::vector<std::string> proto_key; in ComputeInternal() local 290 key, ctx->session_metadata(), ref_holder, &uid, &proto_key, &sharding_key, in ComputeInternal() 356 int64_t num_cores_with_compiled_programs = proto_key.size(); in ComputeInternal() 357 if (proto_key.size() == 1) { in ComputeInternal() 416 if (proto_key.size() == 1) { in ComputeInternal() 417 output.vec<tstring>()(0) = proto_key[0]; in ComputeInternal() 419 output.vec<tstring>()(0) = proto_key[i]; in ComputeInternal()
|
D | tpu_compilation_cache_external.cc | 47 entry->proto_key.push_back(ProtoKeyForComputation(key, i)); in PopulateEntry() 146 for (int64_t i = 0; i < main_entry->proto_key.size(); ++i) { in InitializeEntry() 149 main_entry->proto_key[i], std::make_pair(main_entry, i))); in InitializeEntry()
|
D | tpu_compilation_cache_interface.h | 111 std::vector<std::string>* proto_key, 140 Status Lookup(const std::string& proto_key, 200 std::vector<std::string>* proto_key,
|
D | tpu_compilation_cache_rpc_lookup.cc | 64 const std::string& proto_key, in Lookup() argument 76 proto_key, "_", tpu::CompilationCacheFetchTarget_Name(fetch_target)); in Lookup() 83 request.set_key(proto_key); in Lookup()
|
D | tpu_compilation_cache_local_lookup.h | 35 Status Lookup(const string& proto_key,
|
/external/tink/cc/internal/ |
D | mutable_serialization_registry.cc | 110 util::StatusOr<LegacyProtoKey> proto_key = internal::LegacyProtoKey::Create( in ParseKeyWithLegacyFallback() local 112 if (!proto_key.ok()) return proto_key.status(); in ParseKeyWithLegacyFallback() 113 return {absl::make_unique<LegacyProtoKey>(*proto_key)}; in ParseKeyWithLegacyFallback()
|
D | keyset_handle_builder_entry.cc | 113 const LegacyProtoKey* proto_key = dynamic_cast<const LegacyProtoKey*>(key); in SerializeLegacyKey() local 114 if (proto_key == nullptr) { in SerializeLegacyKey() 119 proto_key->Serialization(InsecureSecretKeyAccess::Get()); in SerializeLegacyKey()
|
/external/tink/java_src/src/main/java/com/google/crypto/tink/tinkkey/internal/ |
D | BUILD.bazel | 8 name = "proto_key", 19 name = "proto_key-android",
|
/external/tink-java/src/main/java/com/google/crypto/tink/tinkkey/internal/ |
D | BUILD.bazel | 8 name = "proto_key", 19 name = "proto_key-android",
|
/external/tink/java_src/src/main/java/com/google/crypto/tink/tinkkey/ |
D | BUILD.bazel | 42 "//src/main/java/com/google/crypto/tink/tinkkey/internal:proto_key", 82 "//src/main/java/com/google/crypto/tink/tinkkey/internal:proto_key-android",
|
/external/tink-java/src/main/java/com/google/crypto/tink/tinkkey/ |
D | BUILD.bazel | 44 "//src/main/java/com/google/crypto/tink/tinkkey/internal:proto_key", 87 "//src/main/java/com/google/crypto/tink/tinkkey/internal:proto_key-android",
|