/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_iovec_record_protocol.cc | 34 size_t tag_length; member 90 if (tag.iov_len != rp->tag_length) { in ensure_header_and_tag_length() 170 return rp->tag_length; in alts_iovec_record_protocol_get_tag_length() 181 kZeroCopyFrameMessageTypeFieldSize + rp->tag_length; in alts_iovec_record_protocol_max_unprotected_data_size() 216 status = write_frame_header(data_length + rp->tag_length, in alts_iovec_record_protocol_integrity_only_protect() 232 if (bytes_written != rp->tag_length) { in alts_iovec_record_protocol_integrity_only_protect() 268 status = verify_frame_header(data_length + rp->tag_length, in alts_iovec_record_protocol_integrity_only_unprotect() 320 rp->tag_length) { in alts_iovec_record_protocol_privacy_integrity_protect() 326 data_length + rp->tag_length, in alts_iovec_record_protocol_privacy_integrity_protect() 335 iovec_t ciphertext = {ciphertext_buffer, data_length + rp->tag_length}; in alts_iovec_record_protocol_privacy_integrity_protect() [all …]
|
D | alts_grpc_integrity_only_record_protocol.cc | 48 unprotected_slices->length + rp->header_length + rp->tag_length; in alts_grpc_integrity_only_extra_copy_protect() 62 rp->tag_length}; in alts_grpc_integrity_only_extra_copy_protect() 96 grpc_slice tag_slice = GRPC_SLICE_MALLOC(rp->tag_length); in alts_grpc_integrity_only_protect() 131 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_integrity_only_unprotect() 150 protected_slices->length - rp->tag_length, in alts_grpc_integrity_only_unprotect() 152 GPR_ASSERT(protected_slices->length == rp->tag_length); in alts_grpc_integrity_only_unprotect() 153 iovec_t tag_iovec = {nullptr, rp->tag_length}; in alts_grpc_integrity_only_unprotect() 222 static_cast<unsigned char*>(gpr_malloc(impl->base.tag_length)); in alts_grpc_integrity_only_record_protocol_create()
|
D | alts_grpc_privacy_integrity_record_protocol.cc | 85 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_privacy_integrity_unprotect() 90 protected_slices->length - rp->header_length - rp->tag_length; in alts_grpc_privacy_integrity_unprotect()
|
D | alts_grpc_record_protocol_common.h | 54 size_t tag_length; member
|
D | alts_grpc_record_protocol_common.cc | 114 rp->tag_length = alts_iovec_record_protocol_get_tag_length(rp->iovec_rp); in alts_grpc_record_protocol_init()
|
/external/grpc-grpc/src/core/tsi/alts/crypt/ |
D | aes_gcm.cc | 50 size_t tag_length; member 102 plaintext_length + aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() 116 if (ciphertext_and_tag_length < aes_gcm_crypter->tag_length) { in gsec_aes_gcm_aead_crypter_max_plaintext_length() 123 ciphertext_and_tag_length - aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_max_plaintext_length() 156 const gsec_aead_crypter* crypter, size_t* tag_length, in gsec_aes_gcm_aead_crypter_tag_length() argument 158 if (tag_length == nullptr) { in gsec_aes_gcm_aead_crypter_tag_length() 165 *tag_length = aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_tag_length() 635 size_t tag_length, bool rekey, in gsec_aes_gcm_aead_crypter_create() argument 650 (tag_length != kAesGcmTagLength) || in gsec_aes_gcm_aead_crypter_create() 663 aes_gcm_crypter->tag_length = tag_length; in gsec_aes_gcm_aead_crypter_create()
|
D | gsec.h | 166 grpc_status_code (*tag_length)(const gsec_aead_crypter* crypter, member 450 size_t tag_length, bool rekey,
|
D | gsec.cc | 173 crypter->vtable->tag_length != nullptr) { in gsec_aead_crypter_tag_length() 174 return crypter->vtable->tag_length(crypter, tag_length_to_return, in gsec_aead_crypter_tag_length()
|
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_iovec_record_protocol_test.cc | 44 size_t tag_length; member 162 var->tag_length = kTagLength; in alts_iovec_record_protocol_test_var_create() 163 var->tag_buf = static_cast<uint8_t*>(gpr_malloc(var->tag_length)); in alts_iovec_record_protocol_test_var_create() 165 var->tag_iovec.iov_len = var->tag_length; in alts_iovec_record_protocol_test_var_create() 177 var->header_length + var->data_length + var->tag_length; in alts_iovec_record_protocol_test_var_create() 314 offset = alter_random_byte(var->tag_buf, var->tag_length); in integrity_only_corrupted_data() 356 iovec_t tag_iovec = {nullptr, var->tag_length}; in integrity_only_protect_input_check() 401 iovec_t tag_iovec = {nullptr, var->tag_length}; in integrity_only_unprotect_input_check() 438 var->data_length + var->tag_length, &var->data_iovec, in privacy_integrity_random_seal_unseal() 454 size_t empty_payload_frame_size = var->header_length + var->tag_length; in privacy_integrity_empty_seal_unseal() [all …]
|
D | alts_grpc_record_protocol_test.cc | 46 size_t tag_length; member 242 var->tag_length = kTagLength; in alts_grpc_record_protocol_test_var_create() 283 data_length + var->header_length + var->tag_length); in random_seal_unseal() 307 var->header_length + var->tag_length); in empty_seal_unseal() 384 &var->protected_sb, var->header_length + var->tag_length - 1, &temp_sb); in input_check()
|
/external/ImageMagick/coders/ |
D | meta.c | 1634 tag_length; in GetIPTCStream() local 1661 tag_length=(((size_t) *p) << 24) | (((size_t) *(p+1)) << 16) | in GetIPTCStream() 1665 if (tag_length > extent) in GetIPTCStream() 1670 return(tag_length); in GetIPTCStream() 1672 if ((tag_length & 0x01) != 0) in GetIPTCStream() 1673 tag_length++; in GetIPTCStream() 1674 p+=tag_length; in GetIPTCStream() 1675 extent-=tag_length; in GetIPTCStream() 1681 tag_length=0; in GetIPTCStream() 1745 tag_length=0; in GetIPTCStream() [all …]
|
D | jpeg.c | 2038 tag_length; in WriteProfile() local 2081 tag_length=strlen(ICC_PROFILE); in WriteProfile() 2083 (void) memcpy(p,ICC_PROFILE,tag_length); in WriteProfile() 2084 p[tag_length]='\0'; in WriteProfile() 2090 (void) memcpy(p+tag_length+3,GetStringInfoDatum(profile)+i, in WriteProfile() 2093 custom_profile),(unsigned int) (length+tag_length+3)); in WriteProfile() 2114 tag_length=14; in WriteProfile() 2119 tag_length=26; in WriteProfile() 2124 (void) memcpy(p+tag_length,GetStringInfoDatum(profile)+i,length); in WriteProfile() 2126 p[length+tag_length]='\0'; in WriteProfile() [all …]
|
/external/grpc-grpc/test/core/tsi/alts/crypt/ |
D | aes_gcm_test.cc | 83 size_t nonce_length, tag_length; in gsec_test_random_encrypt_decrypt() local 86 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_random_encrypt_decrypt() 107 GPR_ASSERT(message_length + tag_length == ciphertext_and_tag_length); in gsec_test_random_encrypt_decrypt() 128 if (tag_length >= kTestMinTagLengthForCorruption) { in gsec_test_random_encrypt_decrypt() 227 size_t nonce_length, tag_length; in gsec_test_multiple_random_encrypt_decrypt() local 234 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_multiple_random_encrypt_decrypt() 274 GPR_ASSERT(message_length + tag_length == ciphertext_and_tag_lengths[ind]); in gsec_test_multiple_random_encrypt_decrypt() 537 size_t nonce_length, tag_length; in gsec_test_decryption_failure() local 541 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_decryption_failure() 619 if (tag_length > 0) { in gsec_test_decryption_failure() [all …]
|
/external/scapy/scapy/layers/tls/crypto/ |
D | cipher_aead.py | 151 tag_length=self.tag_len) 203 tag_length=self.tag_len) 323 tag_length=self.tag_len) 355 tag_length=self.tag_len)
|
/external/flac/libFLAC/ |
D | metadata_iterators.c | 3084 unsigned tag_length = 0; in seek_to_first_metadata_block_cb_() local 3094 tag_length <<= 7; in seek_to_first_metadata_block_cb_() 3095 tag_length |= (buffer[0] & 0x7f); in seek_to_first_metadata_block_cb_() 3099 if(seek_cb(handle, tag_length, SEEK_CUR) < 0) in seek_to_first_metadata_block_cb_()
|
/external/pdfium/third_party/libpng16/ |
D | png.c | 2178 png_uint_32 tag_length = png_get_uint_32(tag+8);/* not padded */ 2199 if (tag_start > profile_length || tag_length > profile_length - tag_start)
|
/external/libpng/ |
D | png.c | 2218 png_uint_32 tag_length = png_get_uint_32(tag+8);/* not padded */ 2230 if (tag_start > profile_length || tag_length > profile_length - tag_start)
|