Home
last modified time | relevance | path

Searched refs:encrypted_data (Results 1 – 21 of 21) sorted by relevance

/system/tpm/attestation/common/
Dcrypto_utility_impl.h43 std::string* encrypted_data) override;
44 bool UnsealKey(const std::string& encrypted_data,
47 bool DecryptData(const std::string& encrypted_data,
61 std::string* encrypted_data) override;
72 std::string* encrypted_data);
76 bool AesDecrypt(const std::string& encrypted_data,
Dcrypto_utility_impl.cc98 std::string* encrypted_data) { in EncryptData() argument
114 if (!encrypted_pb.SerializeToString(encrypted_data)) { in EncryptData()
121 bool CryptoUtilityImpl::UnsealKey(const std::string& encrypted_data, in UnsealKey() argument
125 if (!encrypted_pb.ParseFromString(encrypted_data)) { in UnsealKey()
137 bool CryptoUtilityImpl::DecryptData(const std::string& encrypted_data, in DecryptData() argument
141 if (!encrypted_pb.ParseFromString(encrypted_data)) { in DecryptData()
146 encrypted_pb.iv() + encrypted_pb.encrypted_data(), in DecryptData()
157 if (!AesDecrypt(encrypted_pb.encrypted_data(), aes_key, encrypted_pb.iv(), in DecryptData()
272 std::string* encrypted_data) { in EncryptForUnbind() argument
286 if (!TpmCompatibleOAEPEncrypt(bound_data, rsa.get(), encrypted_data)) { in EncryptForUnbind()
[all …]
Dcrypto_utility.h46 std::string* encrypted_data) = 0;
52 virtual bool UnsealKey(const std::string& encrypted_data,
58 virtual bool DecryptData(const std::string& encrypted_data,
87 std::string* encrypted_data) = 0;
Dmock_crypto_utility.h41 std::string* encrypted_data));
43 MOCK_METHOD3(UnsealKey, bool(const std::string& encrypted_data,
47 MOCK_METHOD3(DecryptData, bool(const std::string& encrypted_data,
Dcrypto_utility_impl_test.cc89 std::string encrypted_data; in TEST_F() local
91 &encrypted_data)); in TEST_F()
95 EXPECT_TRUE(crypto_utility_->UnsealKey(encrypted_data, &key, &sealed_key)); in TEST_F()
96 EXPECT_TRUE(crypto_utility_->DecryptData(encrypted_data, key, &data)); in TEST_F()
Dcommon.proto73 // MAC of (iv || encrypted_data).
75 optional bytes encrypted_data = 5; field
Dprint_common_proto.cc159 base::HexEncode(value.encrypted_data().data(), in GetProtoDebugStringWithIndent()
160 value.encrypted_data().size()).c_str()); in GetProtoDebugStringWithIndent()
Dtpm_utility_v1.cc336 ScopedTssMemory encrypted_data(context_handle_); in SealToPCR0() local
342 encrypted_data.ptr()))) { in SealToPCR0()
346 sealed_data->assign(TSSBufferAsString(encrypted_data.value(), in SealToPCR0()
Dprint_interface_proto.cc541 base::HexEncode(value.encrypted_data().data(), in GetProtoDebugStringWithIndent()
542 value.encrypted_data().size()).c_str()); in GetProtoDebugStringWithIndent()
Dinterface.proto147 optional bytes encrypted_data = 3; field
Dattestation_ca.proto169 // ChallengeResponse.encrypted_key_info.encrypted_data field. This message holds
/system/security/keystore/
Dkeystore_client.proto23 // MAC of (init_vector + encrypted_data).
25 optional bytes encrypted_data = 3; field
Dkeystore_client_impl.cpp78 std::string* encrypted_data) { in encryptWithAuthentication() argument
124 if (!protobuf.SerializeToString(encrypted_data)) { in encryptWithAuthentication()
132 const std::string& encrypted_data, in decryptWithAuthentication() argument
135 if (!protobuf.ParseFromString(encrypted_data)) { in decryptWithAuthentication()
145 protobuf.init_vector() + protobuf.encrypted_data(), in decryptWithAuthentication()
157 protobuf.encrypted_data(), std::string(), /* signature_to_verify */ in decryptWithAuthentication()
/system/security/keystore/include/keystore/
Dkeystore_client.h62 std::string* encrypted_data) = 0;
68 const std::string& encrypted_data,
Dkeystore_client_mock.h34 std::string* encrypted_data));
36 bool(const std::string& key_name, const std::string& encrypted_data,
Dkeystore_client_impl.h38 std::string* encrypted_data) override;
39 bool decryptWithAuthentication(const std::string& key_name, const std::string& encrypted_data,
/system/connectivity/shill/
Dcrypto_util_proxy.cc398 response.encrypted_data().empty()) { in HandleEncryptResult()
406 brillo::data_encoding::Base64Encode(response.encrypted_data())); in HandleEncryptResult()
/system/connectivity/shill/shims/protos/
Dcrypto_util.proto48 optional bytes encrypted_data = 2; field
/system/tpm/attestation/server/
Ddbus_service_test.cc310 EXPECT_EQ("data", request.encrypted_data()); in TEST_F()
Dattestation_service.cc437 if (!tpm_utility_->Unbind(key.key_blob(), request.encrypted_data(), &data)) { in DecryptTask()
/system/tpm/attestation/client/
Ddbus_proxy_test.cc313 EXPECT_EQ("data", request_proto.encrypted_data()); in TEST_F()