Home
last modified time | relevance | path

Searched refs:encrypted_data (Results 1 – 19 of 19) 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 HmacSha512(encrypted_pb.iv() + encrypted_pb.encrypted_data(), aes_key); in DecryptData()
156 if (!AesDecrypt(encrypted_pb.encrypted_data(), aes_key, encrypted_pb.iv(), in DecryptData()
271 std::string* encrypted_data) { in EncryptForUnbind() argument
285 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.h42 std::string* encrypted_data));
45 bool(const std::string& encrypted_data,
50 bool(const std::string& encrypted_data,
Dcrypto_utility_impl_test.cc89 std::string encrypted_data; in TEST_F() local
91 crypto_utility_->EncryptData(data, key, sealed_key, &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.cc162 base::HexEncode(value.encrypted_data().data(), in GetProtoDebugStringWithIndent()
163 value.encrypted_data().size()) in GetProtoDebugStringWithIndent()
Dtpm_utility_v1.cc312 ScopedTssMemory encrypted_data(context_handle_); in SealToPCR0() local
317 encrypted_data.ptr()))) { in SealToPCR0()
322 TSSBufferAsString(encrypted_data.value(), encrypted_data_length)); in SealToPCR0()
Dprint_interface_proto.cc553 base::HexEncode(value.encrypted_data().data(), in GetProtoDebugStringWithIndent()
554 value.encrypted_data().size()) 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.cpp64 std::string* encrypted_data) { in encryptWithAuthentication() argument
109 if (!protobuf.SerializeToString(encrypted_data)) { in encryptWithAuthentication()
117 const std::string& encrypted_data, in decryptWithAuthentication() argument
120 if (!protobuf.ParseFromString(encrypted_data)) { in decryptWithAuthentication()
130 protobuf.init_vector() + protobuf.encrypted_data(), in decryptWithAuthentication()
142 protobuf.encrypted_data(), std::string(), /* signature_to_verify */ in decryptWithAuthentication()
/system/security/keystore/include/keystore/
Dkeystore_client.h65 std::string* encrypted_data) = 0;
71 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/tpm/attestation/client/
Ddbus_proxy_test.cc314 EXPECT_EQ("data", request_proto.encrypted_data()); in TEST_F()
/system/tpm/attestation/server/
Ddbus_service_test.cc311 EXPECT_EQ("data", request.encrypted_data()); in TEST_F()
Dattestation_service.cc393 if (!tpm_utility_->Unbind(key.key_blob(), request.encrypted_data(), &data)) { in DecryptTask()