Searched defs:encrypted_data (Results 1 - 3 of 3) sorted by relevance

/system/tpm/attestation/common/
H A Dcrypto_utility_impl_test.cc89 std::string encrypted_data; local
91 crypto_utility_->EncryptData(data, key, sealed_key, &encrypted_data));
95 EXPECT_TRUE(crypto_utility_->UnsealKey(encrypted_data, &key, &sealed_key));
96 EXPECT_TRUE(crypto_utility_->DecryptData(encrypted_data, key, &data));
H A Dcrypto_utility_impl.cc98 std::string* encrypted_data) {
114 if (!encrypted_pb.SerializeToString(encrypted_data)) {
121 bool CryptoUtilityImpl::UnsealKey(const std::string& encrypted_data, argument
125 if (!encrypted_pb.ParseFromString(encrypted_data)) {
137 bool CryptoUtilityImpl::DecryptData(const std::string& encrypted_data, argument
141 if (!encrypted_pb.ParseFromString(encrypted_data)) {
146 HmacSha512(encrypted_pb.iv() + encrypted_pb.encrypted_data(), aes_key);
156 if (!AesDecrypt(encrypted_pb.encrypted_data(), aes_key, encrypted_pb.iv(),
271 std::string* encrypted_data) {
285 if (!TpmCompatibleOAEPEncrypt(bound_data, rsa.get(), encrypted_data)) {
95 EncryptData(const std::string& data, const std::string& aes_key, const std::string& sealed_key, std::string* encrypted_data) argument
269 EncryptForUnbind(const std::string& public_key, const std::string& data, std::string* encrypted_data) argument
310 AesEncrypt(const std::string& data, const std::string& key, const std::string& iv, std::string* encrypted_data) argument
360 AesDecrypt(const std::string& encrypted_data, const std::string& key, const std::string& iv, std::string* data) argument
[all...]
/system/security/keystore/
H A Dkeystore_client_impl.cpp65 std::string* encrypted_data) {
110 if (!protobuf.SerializeToString(encrypted_data)) {
118 const std::string& encrypted_data,
121 if (!protobuf.ParseFromString(encrypted_data)) {
131 protobuf.init_vector() + protobuf.encrypted_data(),
143 protobuf.encrypted_data(), std::string(), /* signature_to_verify */
63 encryptWithAuthentication(const std::string& key_name, const std::string& data, int32_t flags, std::string* encrypted_data) argument
117 decryptWithAuthentication(const std::string& key_name, const std::string& encrypted_data, std::string* data) argument

Completed in 128 milliseconds