Lines Matching refs:string

38 using ::std::string;
49 explicit HidlBuf(const std::string& other) : HidlBuf() { *this = other; } in HidlBuf()
73 HidlBuf& operator=(const string& other) {
79 string to_string() const { return string(reinterpret_cast<const char*>(data()), size()); } in to_string()
84 class KeymasterHidlTest : public ::testing::TestWithParam<std::string> {
104 const string& key_material, HidlBuf* key_blob,
107 const string& key_material);
109 ErrorCode ImportWrappedKey(string wrapped_key, string wrapping_key,
110 const AuthorizationSet& wrapping_key_desc, string masking_key,
140 const string& input, AuthorizationSet* out_params, string* output,
142 ErrorCode Update(const string& input, string* out, size_t* input_consumed);
145 const string& input, const string& signature, AuthorizationSet* out_params,
146 string* output);
147 ErrorCode Finish(const string& message, string* output);
148 ErrorCode Finish(const string& message, const string& signature, string* output);
149 ErrorCode Finish(string* output) { return Finish(string(), output); } in Finish()
160 string ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, const string& message,
163 string SignMessage(const HidlBuf& key_blob, const string& message,
165 string SignMessage(const string& message, const AuthorizationSet& params);
167 string MacMessage(const string& message, Digest digest, size_t mac_length);
169 void CheckHmacTestVector(const string& key, const string& message, Digest digest,
170 const string& expected_mac);
172 void CheckAesCtrTestVector(const string& key, const string& nonce, const string& message,
173 const string& expected_ciphertext);
176 PaddingMode padding_mode, const string& key, const string& iv,
177 const string& input, const string& expected_output);
179 void VerifyMessage(const HidlBuf& key_blob, const string& message, const string& signature,
181 void VerifyMessage(const string& message, const string& signature,
184 string EncryptMessage(const HidlBuf& key_blob, const string& message,
186 string EncryptMessage(const string& message, const AuthorizationSet& params,
188 string EncryptMessage(const string& message, const AuthorizationSet& params);
189 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding);
190 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding,
192 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding,
194 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding,
197 string DecryptMessage(const HidlBuf& key_blob, const string& ciphertext,
199 string DecryptMessage(const string& ciphertext, const AuthorizationSet& params);
200 string DecryptMessage(const string& ciphertext, BlockMode block_mode, PaddingMode padding_mode,
221 static std::vector<std::string> build_params() { in build_params()