Home
last modified time | relevance | path

Searched refs:expected_tag (Results 1 – 25 of 43) sorted by relevance

12

/external/wayland/tests/
Dproxy-test.c52 const char * const *expected_tag; in callback_done() local
56 expected_tag = &tag_a; in callback_done()
58 expected_tag = &tag_b; in callback_done()
64 assert(tag == expected_tag); in callback_done()
/external/python/cpython3/Lib/test/test_importlib/
Dtest_windows.py118 expected_tag = f".cp{ver.major}{ver.minor}{abi_flags}-{platform}.pyd"
123 expected_tag = "_d" + expected_tag
125 self.assertIn(expected_tag, suffixes)
128 tagged_i = suffixes.index(expected_tag)
/external/libusb/examples/
Dxusb.c376 … int get_mass_storage_status(libusb_device_handle *handle, uint8_t endpoint, uint32_t expected_tag) in get_mass_storage_status() argument
399 if (csw.dCSWTag != expected_tag) { in get_mass_storage_status()
401 expected_tag, csw.dCSWTag); in get_mass_storage_status()
406 if (csw.dCSWTag != expected_tag) in get_mass_storage_status()
427 uint32_t expected_tag; in get_sense() local
438 …age_command(handle, endpoint_out, 0, cdb, LIBUSB_ENDPOINT_IN, REQUEST_SENSE_LENGTH, &expected_tag); in get_sense()
455 get_mass_storage_status(handle, endpoint_in, expected_tag); in get_sense()
463 uint32_t expected_tag; in test_mass_storage() local
494 …storage_command(handle, endpoint_out, lun, cdb, LIBUSB_ENDPOINT_IN, INQUIRY_LENGTH, &expected_tag); in test_mass_storage()
507 if (get_mass_storage_status(handle, endpoint_in, expected_tag) == -2) { in test_mass_storage()
[all …]
/external/tink/python/examples/mac/
Dmac.py76 expected_tag = binascii.unhexlify(mac_file.read().strip())
82 primitive.verify_mac(expected_tag, data)
/external/libwebsockets/plugins/ssh-base/crypto/
Dchacha.c307 u_char expected_tag[POLY1305_TAGLEN], poly_key[POLY1305_KEYLEN]; in chachapoly_crypt() local
324 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt()
325 if (lws_timingsafe_bcmp(expected_tag, tag, POLY1305_TAGLEN)) { in chachapoly_crypt()
348 lws_explicit_bzero(expected_tag, sizeof(expected_tag)); in chachapoly_crypt()
/external/openthread/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ccm.function198 const uint8_t *expected_tag = result->x + msg->len;
217 TEST_MEMORY_COMPARE(tag_buf, expected_tag_len, expected_tag, expected_tag_len);
222 …const data_t tag_expected = { .x = (uint8_t *) expected_tag, /* cast to conform with data_t x type…
283 const uint8_t *expected_tag = msg->x + expected_msg_len;
297 io_msg_buf, io_msg_buf, expected_tag, expected_tag_len),
307 const data_t tag_expected = { .x = (uint8_t *) expected_tag,
351 const uint8_t *expected_tag = expected_result->x + msg->len;
391 TEST_MEMORY_COMPARE(tag_buf, expected_tag_len, expected_tag, expected_tag_len);
399 const data_t tag_expected = { .x = (uint8_t *) expected_tag,
444 const uint8_t *expected_tag = msg->x + expected_msg_len;
[all …]
/external/mbedtls/tests/suites/
Dtest_suite_ccm.function190 const uint8_t *expected_tag = result->x + msg->len;
208 TEST_MEMORY_COMPARE(tag_buf, expected_tag_len, expected_tag, expected_tag_len);
213 …const data_t tag_expected = { .x = (uint8_t *) expected_tag, /* cast to conform with data_t x type…
271 const uint8_t *expected_tag = msg->x + expected_msg_len;
284 io_msg_buf, io_msg_buf, expected_tag, expected_tag_len),
294 const data_t tag_expected = { .x = (uint8_t *) expected_tag,
337 const uint8_t *expected_tag = expected_result->x + msg->len;
376 TEST_MEMORY_COMPARE(tag_buf, expected_tag_len, expected_tag, expected_tag_len);
384 const data_t tag_expected = { .x = (uint8_t *) expected_tag,
428 const uint8_t *expected_tag = msg->x + expected_msg_len;
[all …]
/external/cronet/stable/third_party/boringssl/src/crypto/cipher_extra/
De_aesgcmsiv.cc770 uint8_t expected_tag[EVP_AEAD_AES_GCM_SIV_TAG_LEN]; in aead_aes_gcm_siv_open_gather() local
771 gcm_siv_polyval(expected_tag, out, in_len, ad, ad_len, keys.auth_key, nonce); in aead_aes_gcm_siv_open_gather()
772 keys.enc_block(expected_tag, expected_tag, &keys.enc_key.ks); in aead_aes_gcm_siv_open_gather()
774 if (CRYPTO_memcmp(expected_tag, in_tag, sizeof(expected_tag)) != 0) { in aead_aes_gcm_siv_open_gather()
/external/cronet/tot/third_party/boringssl/src/crypto/cipher_extra/
De_aesgcmsiv.cc770 uint8_t expected_tag[EVP_AEAD_AES_GCM_SIV_TAG_LEN]; in aead_aes_gcm_siv_open_gather() local
771 gcm_siv_polyval(expected_tag, out, in_len, ad, ad_len, keys.auth_key, nonce); in aead_aes_gcm_siv_open_gather()
772 keys.enc_block(expected_tag, expected_tag, &keys.enc_key.ks); in aead_aes_gcm_siv_open_gather()
774 if (CRYPTO_memcmp(expected_tag, in_tag, sizeof(expected_tag)) != 0) { in aead_aes_gcm_siv_open_gather()
/external/boringssl/src/crypto/cipher_extra/
De_aesgcmsiv.cc777 uint8_t expected_tag[EVP_AEAD_AES_GCM_SIV_TAG_LEN]; in aead_aes_gcm_siv_open_gather() local
778 gcm_siv_polyval(expected_tag, out, in_len, ad, ad_len, keys.auth_key, nonce); in aead_aes_gcm_siv_open_gather()
779 keys.enc_block(expected_tag, expected_tag, &keys.enc_key.ks); in aead_aes_gcm_siv_open_gather()
781 if (CRYPTO_memcmp(expected_tag, in_tag, sizeof(expected_tag)) != 0) { in aead_aes_gcm_siv_open_gather()
/external/rust/android-crates-io/crates/quiche/deps/boringssl/src/crypto/cipher_extra/
De_aesgcmsiv.c812 uint8_t expected_tag[EVP_AEAD_AES_GCM_SIV_TAG_LEN]; in aead_aes_gcm_siv_open_gather() local
813 gcm_siv_polyval(expected_tag, out, in_len, ad, ad_len, keys.auth_key, nonce); in aead_aes_gcm_siv_open_gather()
814 keys.enc_block(expected_tag, expected_tag, &keys.enc_key.ks); in aead_aes_gcm_siv_open_gather()
816 if (CRYPTO_memcmp(expected_tag, in_tag, sizeof(expected_tag)) != 0) { in aead_aes_gcm_siv_open_gather()
/external/cronet/tot/base/files/
Dscoped_file_android.cc13 uint64_t expected_tag,
/external/cronet/stable/base/files/
Dscoped_file_android.cc13 uint64_t expected_tag,
/external/protobuf/src/google/protobuf/compiler/cpp/
Dparse_function_generator.cc1459 uint32_t expected_tag; in ExpectedTag() local
1462 expected_tag = WireFormatLite::MakeTag(field->number(), expected_wiretype); in ExpectedTag()
1468 if (field->is_packed()) std::swap(expected_tag, fallback_tag); in ExpectedTag()
1472 expected_tag = WireFormatLite::MakeTag(field->number(), expected_wiretype); in ExpectedTag()
1474 return expected_tag; in ExpectedTag()
1565 uint32_t expected_tag = ExpectedTag(field, &fallback_tag); in GenerateFieldSwitch() local
1567 expected_tag & 0xFF); in GenerateFieldSwitch()
1572 auto wiretype = WireFormatLite::GetTagWireType(expected_tag); in GenerateFieldSwitch()
/external/cronet/stable/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dparse_function_generator.cc1459 uint32_t expected_tag; in ExpectedTag() local
1462 expected_tag = WireFormatLite::MakeTag(field->number(), expected_wiretype); in ExpectedTag()
1468 if (field->is_packed()) std::swap(expected_tag, fallback_tag); in ExpectedTag()
1472 expected_tag = WireFormatLite::MakeTag(field->number(), expected_wiretype); in ExpectedTag()
1474 return expected_tag; in ExpectedTag()
1565 uint32_t expected_tag = ExpectedTag(field, &fallback_tag); in GenerateFieldSwitch() local
1567 expected_tag & 0xFF); in GenerateFieldSwitch()
1572 auto wiretype = WireFormatLite::GetTagWireType(expected_tag); in GenerateFieldSwitch()
/external/cronet/tot/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dparse_function_generator.cc1459 uint32_t expected_tag; in ExpectedTag() local
1462 expected_tag = WireFormatLite::MakeTag(field->number(), expected_wiretype); in ExpectedTag()
1468 if (field->is_packed()) std::swap(expected_tag, fallback_tag); in ExpectedTag()
1472 expected_tag = WireFormatLite::MakeTag(field->number(), expected_wiretype); in ExpectedTag()
1474 return expected_tag; in ExpectedTag()
1565 uint32_t expected_tag = ExpectedTag(field, &fallback_tag); in GenerateFieldSwitch() local
1567 expected_tag & 0xFF); in GenerateFieldSwitch()
1572 auto wiretype = WireFormatLite::GetTagWireType(expected_tag); in GenerateFieldSwitch()
/external/cronet/tot/third_party/boringssl/src/pki/
Dparser_unittest.cc319 CBS_ASN1_TAG expected_tag = 0x10; in TEST() local
321 ASSERT_FALSE(parser.ReadConstructed(expected_tag, &sequence_parser)); in TEST()
326 ASSERT_TRUE(parser.ReadTag(expected_tag, &value)); in TEST()
/external/cronet/stable/third_party/boringssl/src/pki/
Dparser_unittest.cc319 CBS_ASN1_TAG expected_tag = 0x10; in TEST() local
321 ASSERT_FALSE(parser.ReadConstructed(expected_tag, &sequence_parser)); in TEST()
326 ASSERT_TRUE(parser.ReadTag(expected_tag, &value)); in TEST()
/external/rust/android-crates-io/crates/webpki/src/
Dder.rs115 let expected_tag = if is_utc_time { in time_choice() localVariable
140 nested(input, expected_tag, Error::BadDer, |value| { in time_choice()
/external/sandboxed-api/sandboxed_api/sandbox2/
Dcomms.cc621 size_t buffer_size, std::optional<uint32_t> expected_tag) { in RecvTLV() argument
626 if (expected_tag.has_value() && *tag != *expected_tag) { in RecvTLV()
627 SAPI_RAW_LOG(ERROR, "Expected tag: 0x%08x, got: 0x%x", *expected_tag, *tag); in RecvTLV()
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/read-fonts-0.23.2/src/tables/layout/
Dscript.rs258 let expected_tag = Tag::new(&bytes); in simple_script_tag_from_unicode() localVariable
260 assert_eq!(&*result, &[expected_tag]); in simple_script_tag_from_unicode()
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/read-fonts-0.23.2/src/tables/layout/
Dscript.rs258 let expected_tag = Tag::new(&bytes); in simple_script_tag_from_unicode() localVariable
260 assert_eq!(&*result, &[expected_tag]); in simple_script_tag_from_unicode()
/external/protobuf/src/google/protobuf/
Dgenerated_message_tctable_lite.cc501 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedFixed() local
508 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedFixed()
845 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedVarint() local
857 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedVarint()
1050 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedEnum() local
1071 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedEnum()
1206 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedString() local
1225 ReportFastUtf8Error(FastDecodeTag(expected_tag), table); in RepeatedString()
1230 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedString()
/external/cronet/stable/third_party/protobuf/src/google/protobuf/
Dgenerated_message_tctable_lite.cc501 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedFixed() local
508 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedFixed()
845 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedVarint() local
857 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedVarint()
1050 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedEnum() local
1071 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedEnum()
1206 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedString() local
1225 ReportFastUtf8Error(FastDecodeTag(expected_tag), table); in RepeatedString()
1230 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedString()
/external/cronet/tot/third_party/protobuf/src/google/protobuf/
Dgenerated_message_tctable_lite.cc501 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedFixed() local
508 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedFixed()
845 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedVarint() local
857 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedVarint()
1050 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedEnum() local
1071 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedEnum()
1206 auto expected_tag = UnalignedLoad<TagType>(ptr); in RepeatedString() local
1225 ReportFastUtf8Error(FastDecodeTag(expected_tag), table); in RepeatedString()
1230 } while (UnalignedLoad<TagType>(ptr) == expected_tag); in RepeatedString()

12