Home
last modified time | relevance | path

Searched refs:tag_length (Results 1 – 17 of 17) sorted by relevance

/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc34 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 …]
Dalts_grpc_integrity_only_record_protocol.cc48 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()
Dalts_grpc_privacy_integrity_record_protocol.cc85 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()
Dalts_grpc_record_protocol_common.h54 size_t tag_length; member
Dalts_grpc_record_protocol_common.cc114 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/
Daes_gcm.cc50 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()
Dgsec.h166 grpc_status_code (*tag_length)(const gsec_aead_crypter* crypter, member
450 size_t tag_length, bool rekey,
Dgsec.cc173 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/
Dalts_iovec_record_protocol_test.cc44 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 …]
Dalts_grpc_record_protocol_test.cc46 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/
Dmeta.c1634 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 …]
Djpeg.c2038 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/
Daes_gcm_test.cc83 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/
Dcipher_aead.py151 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/
Dmetadata_iterators.c3084 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/
Dpng.c2178 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/
Dpng.c2218 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)