Lines Matching refs:encrypted_data
98 std::string* encrypted_data) {
114 if (!encrypted_pb.SerializeToString(encrypted_data)) {
121 bool CryptoUtilityImpl::UnsealKey(const std::string& encrypted_data,
125 if (!encrypted_pb.ParseFromString(encrypted_data)) {
137 bool CryptoUtilityImpl::DecryptData(const std::string& encrypted_data,
141 if (!encrypted_pb.ParseFromString(encrypted_data)) {
146 encrypted_pb.iv() + encrypted_pb.encrypted_data(),
157 if (!AesDecrypt(encrypted_pb.encrypted_data(), aes_key, encrypted_pb.iv(),
272 std::string* encrypted_data) {
286 if (!TpmCompatibleOAEPEncrypt(bound_data, rsa.get(), encrypted_data)) {
314 std::string* encrypted_data) {
329 encrypted_data->resize(data.size() + kAesBlockSize);
331 string_as_array(encrypted_data));
356 encrypted_data->resize(total_size);
361 bool CryptoUtilityImpl::AesDecrypt(const std::string& encrypted_data,
368 if (encrypted_data.size() >
373 std::string mutable_encrypted_data(encrypted_data);
380 data->resize(encrypted_data.size());
392 input_buffer, encrypted_data.size())) {