Lines Matching refs:vector
52 using ::std::vector;
59 vector<uint8_t> blob;
60 vector<KeyCharacteristics> characteristics;
79 uint32_t boot_patch_level(const vector<KeyCharacteristics>& key_characteristics);
84 ErrorCode GenerateKey(const AuthorizationSet& key_desc, vector<uint8_t>* key_blob, in GenerateKey()
85 vector<KeyCharacteristics>* key_characteristics) { in GenerateKey()
90 const optional<AttestationKey>& attest_key, vector<uint8_t>* key_blob,
91 vector<KeyCharacteristics>* key_characteristics,
92 vector<Certificate>* cert_chain);
97 const string& key_material, vector<uint8_t>* key_blob,
98 vector<KeyCharacteristics>* key_characteristics);
113 ErrorCode GetCharacteristics(const vector<uint8_t>& key_blob, const vector<uint8_t>& app_id,
114 const vector<uint8_t>& app_data,
115 vector<KeyCharacteristics>* key_characteristics);
116 ErrorCode GetCharacteristics(const vector<uint8_t>& key_blob,
117 vector<KeyCharacteristics>* key_characteristics);
119 void CheckCharacteristics(const vector<uint8_t>& key_blob,
120 const vector<KeyCharacteristics>& generate_characteristics);
121 void CheckAppIdCharacteristics(const vector<uint8_t>& key_blob, std::string_view app_id_string,
123 const vector<KeyCharacteristics>& generate_characteristics);
125 ErrorCode DeleteKey(vector<uint8_t>* key_blob, bool keep_key_blob = false);
132 void CheckedDeleteKey(vector<uint8_t>* key_blob, bool keep_key_blob = false);
135 ErrorCode Begin(KeyPurpose purpose, const vector<uint8_t>& key_blob,
138 ErrorCode Begin(KeyPurpose purpose, const vector<uint8_t>& key_blob,
157 string ProcessMessage(const vector<uint8_t>& key_blob, KeyPurpose operation,
161 const vector<uint8_t>& key_blob, KeyPurpose operation, const std::string& message,
163 string SignMessage(const vector<uint8_t>& key_blob, const string& message,
179 void VerifyMessage(const vector<uint8_t>& key_blob, const string& message,
187 string EncryptMessage(const vector<uint8_t>& key_blob, const string& message,
194 vector<uint8_t>* iv_out);
196 const vector<uint8_t>& iv_in);
198 uint8_t mac_length_bits, const vector<uint8_t>& iv_in);
202 string DecryptMessage(const vector<uint8_t>& key_blob, const string& ciphertext,
206 const vector<uint8_t>& iv);
208 std::pair<ErrorCode, vector<uint8_t>> UpgradeKey(const vector<uint8_t>& key_blob);
271 vector<uint32_t> ValidKeySizes(Algorithm algorithm);
272 vector<uint32_t> InvalidKeySizes(Algorithm algorithm);
274 vector<BlockMode> ValidBlockModes(Algorithm algorithm);
275 vector<PaddingMode> ValidPaddingModes(Algorithm algorithm, BlockMode blockMode);
276 vector<PaddingMode> InvalidPaddingModes(Algorithm algorithm, BlockMode blockMode);
278 vector<EcCurve> ValidCurves();
279 vector<EcCurve> InvalidCurves();
281 vector<Digest> ValidDigests(bool withNone, bool withMD5);
283 static vector<string> build_params() { in build_params()
289 vector<Certificate> cert_chain_;
290 vector<uint8_t> key_blob_;
291 vector<KeyCharacteristics> key_characteristics_;
293 const vector<KeyParameter>& SecLevelAuthorizations(
294 const vector<KeyCharacteristics>& key_characteristics);
295 inline const vector<KeyParameter>& SecLevelAuthorizations() { in SecLevelAuthorizations()
298 const vector<KeyParameter>& SecLevelAuthorizations(
299 const vector<KeyCharacteristics>& key_characteristics, SecurityLevel securityLevel);
301 ErrorCode UseAesKey(const vector<uint8_t>& aesKeyBlob);
302 ErrorCode UseHmacKey(const vector<uint8_t>& hmacKeyBlob);
303 ErrorCode UseRsaKey(const vector<uint8_t>& rsaKeyBlob);
304 ErrorCode UseEcdsaKey(const vector<uint8_t>& ecdsaKeyBlob);
329 vector<uint8_t> build_serial_blob(const uint64_t serial_int);
341 const vector<uint8_t>& attestation_cert,
342 vector<uint8_t>* unique_id = nullptr);
344 string bin2hex(const vector<uint8_t>& data);
345 X509_Ptr parse_cert_blob(const vector<uint8_t>& blob);
346 vector<uint8_t> make_name_from_str(const string& name);
348 vector<uint8_t>* payload_value);
349 void p256_pub_key(const vector<uint8_t>& coseKeyData, EVP_PKEY_Ptr* signingKey);
351 AuthorizationSet HwEnforcedAuthorizations(const vector<KeyCharacteristics>& key_characteristics);
352 AuthorizationSet SwEnforcedAuthorizations(const vector<KeyCharacteristics>& key_characteristics);
353 ::testing::AssertionResult ChainSignaturesAreValid(const vector<Certificate>& chain,