/third_party/libsnd/src/ |
D | ogg_vcomment.c | 76 size_t tag_size, tag_len = 0 ; in vorbiscomment_read_tags() local 111 tag_len = read_32bit_size_t (p) ; in vorbiscomment_read_tags() 113 if (tag_len > 0) in vorbiscomment_read_tags() 115 if (p + tag_len + 4 > ep) in vorbiscomment_read_tags() 119 if (tag_len > tag_size - 1) in vorbiscomment_read_tags() 121 tag_size = tag_len + 1 ; in vorbiscomment_read_tags() 127 memcpy (tag, p, tag_len) ; p += tag_len ; in vorbiscomment_read_tags() 128 tag [tag_len] = '\0' ; in vorbiscomment_read_tags() 143 tag_len = read_32bit_size_t (p) ; in vorbiscomment_read_tags() 145 if (p + tag_len > ep) in vorbiscomment_read_tags() [all …]
|
/third_party/mbedtls/library/ |
D | ccm.c | 156 if( ctx->tag_len == 0 ) in ccm_calculate_first_block_if_ready() 181 ctx->y[0] |= ( ( ctx->tag_len - 2 ) / 2 ) << 3; in ccm_calculate_first_block_if_ready() 243 size_t tag_len ) in mbedtls_ccm_set_lengths() argument 252 if( tag_len == 2 || tag_len > 16 || tag_len % 2 != 0 ) in mbedtls_ccm_set_lengths() 260 ctx->tag_len = tag_len; in mbedtls_ccm_set_lengths() 359 if( ctx->tag_len != 0 && ctx->processed + input_len > ctx->plaintext_len ) in mbedtls_ccm_update() 449 unsigned char *tag, size_t tag_len ) in mbedtls_ccm_finish() argument 479 memcpy( tag, ctx->y, tag_len ); in mbedtls_ccm_finish() 492 unsigned char *tag, size_t tag_len ) in ccm_auth_crypt() argument 500 if( ( ret = mbedtls_ccm_set_lengths( ctx, add_len, length, tag_len ) ) != 0 ) in ccm_auth_crypt() [all …]
|
D | cipher.c | 1105 unsigned char *tag, size_t tag_len ) in mbedtls_cipher_write_tag() argument 1108 CIPHER_VALIDATE_RET( tag_len == 0 || tag != NULL ); in mbedtls_cipher_write_tag() 1133 tag, tag_len ) ); in mbedtls_cipher_write_tag() 1141 if ( tag_len != 16U ) in mbedtls_cipher_write_tag() 1153 const unsigned char *tag, size_t tag_len ) in mbedtls_cipher_check_tag() argument 1159 CIPHER_VALIDATE_RET( tag_len == 0 || tag != NULL ); in mbedtls_cipher_check_tag() 1191 if( tag_len > sizeof( check_tag ) ) in mbedtls_cipher_check_tag() 1197 check_tag, tag_len ) ) ) in mbedtls_cipher_check_tag() 1203 if( mbedtls_ct_memcmp( tag, check_tag, tag_len ) != 0 ) in mbedtls_cipher_check_tag() 1215 if ( tag_len != sizeof( check_tag ) ) in mbedtls_cipher_check_tag() [all …]
|
D | gcm.c | 515 unsigned char *tag, size_t tag_len ) in mbedtls_gcm_finish() argument 539 if( tag_len > 16 || tag_len < 4 ) in mbedtls_gcm_finish() 545 memcpy( tag, ctx->base_ectr, tag_len ); in mbedtls_gcm_finish() 561 for( i = 0; i < tag_len; i++ ) in mbedtls_gcm_finish() 577 size_t tag_len, in mbedtls_gcm_crypt_and_tag() argument 600 if( ( ret = mbedtls_gcm_finish( ctx, NULL, 0, &olen, tag, tag_len ) ) != 0 ) in mbedtls_gcm_crypt_and_tag() 613 size_t tag_len, in mbedtls_gcm_auth_decrypt() argument 631 input, output, tag_len, check_tag ) ) != 0 ) in mbedtls_gcm_auth_decrypt() 637 for( diff = 0, i = 0; i < tag_len; i++ ) in mbedtls_gcm_auth_decrypt()
|
/third_party/mbedtls/include/mbedtls/ |
D | ccm.h | 84 size_t MBEDTLS_PRIVATE(tag_len); /*!< Total tag length */ 183 unsigned char *tag, size_t tag_len ); 232 unsigned char *tag, size_t tag_len ); 269 const unsigned char *tag, size_t tag_len ); 315 const unsigned char *tag, size_t tag_len ); 380 size_t tag_len ); 516 unsigned char *tag, size_t tag_len );
|
D | gcm.h | 174 size_t tag_len, 217 size_t tag_len, 355 unsigned char *tag, size_t tag_len );
|
D | cipher.h | 990 unsigned char *tag, size_t tag_len ); 1006 const unsigned char *tag, size_t tag_len ); 1097 size_t *olen, size_t tag_len ); 1153 size_t *olen, size_t tag_len );
|
/third_party/mbedtls/tests/scripts/ |
D | gen_gcm_encrypt.pl | 67 my $tag_len = get_suite_val("Taglen"); 79 print("GCM NIST Validation (AES-$key_len,$iv_len,$pt_len,$add_len,$tag_len) #$Count\n"); 86 print(":$tag_len");
|
D | gen_gcm_decrypt.pl | 84 my $tag_len = get_suite_val("Taglen"); 96 print("GCM NIST Validation (AES-$key_len,$iv_len,$pt_len,$add_len,$tag_len) #$Count\n"); 102 print(":$tag_len");
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | decoder.py | 234 tag_len = len(tag_bytes) 244 pos = new_pos + tag_len 448 tag_len = len(tag_bytes) 482 pos = new_pos + tag_len 593 tag_len = len(tag_bytes) 605 pos = new_pos + tag_len 634 tag_len = len(tag_bytes) 646 pos = new_pos + tag_len 676 tag_len = len(tag_bytes) 692 pos = new_pos + tag_len [all …]
|
/third_party/openssl/test/ |
D | aesgcmtest.c | 39 unsigned char *tag, int *tag_len) in do_encrypt() argument 46 *tag_len = 16; in do_encrypt() 67 int ct_len, const unsigned char *tag, int tag_len) in do_decrypt() argument 85 tag_len, (void *)tag) > 0) in do_decrypt()
|
D | acvp_test.c | 722 const unsigned char *tag, size_t tag_len, in aes_ccm_enc_dec() argument 739 || !TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, tag_len, in aes_ccm_enc_dec() 757 tag_len, out + out_len), 0) in aes_ccm_enc_dec() 759 || !TEST_mem_eq(out + out_len, tag_len, tag, tag_len)) in aes_ccm_enc_dec() 778 const size_t tag_len = tst->ct_len - tst->pt_len; in aes_ccm_enc_dec_test() local 779 const size_t ct_len = tst->ct_len - tag_len; in aes_ccm_enc_dec_test() 790 tst->ct, ct_len, tag, tag_len, enc, pass) in aes_ccm_enc_dec_test() 794 tst->pt, tst->pt_len, tag, tag_len, !enc, pass) in aes_ccm_enc_dec_test() 800 tag - 1, tag_len, !enc, !pass); in aes_ccm_enc_dec_test() 809 const unsigned char *tag, size_t tag_len, in aes_gcm_enc_dec() argument [all …]
|
/third_party/openssl/crypto/x509/ |
D | v3_cpols.c | 35 static int displaytext_str2tag(const char *tagstr, unsigned int *tag_len); 254 static int displaytext_str2tag(const char *tagstr, unsigned int *tag_len) in displaytext_str2tag() argument 258 *tag_len = 0; in displaytext_str2tag() 263 *tag_len = len; in displaytext_str2tag() 276 *tag_len = 0; in displaytext_str2tag() 284 unsigned int tag_len; in notice_section() local 304 tag = displaytext_str2tag(value, &tag_len); in notice_section() 307 if (tag_len != 0) in notice_section() 308 value += tag_len + 1; in notice_section()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_gcm.function | 174 size_t tag_len = tag_len_bits / 8; 183 … add_str->x, add_str->len, src_str->x, output, tag_len, tag_output ) == gcm_result ); 200 size_t tag_len = tag_len_bits / 8; 213 …n, iv_str->x, iv_str->len, add_str->x, add_str->len, src_str->x, output, tag_len, tag_output ) == … 216 ASSERT_COMPARE( tag_output, tag_len, tag->x, tag->len ); 247 size_t tag_len = tag_len_bits / 8; 259 …_str->len, iv_str->x, iv_str->len, add_str->x, add_str->len, tag_str->x, tag_len, src_str->x, outp…
|
/third_party/rust/crates/nom/src/bytes/ |
D | streaming.rs | 39 let tag_len = tag.input_len(); in tag() localVariable 43 CompareResult::Ok => Ok(i.take_split(tag_len)), in tag() 44 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag() 81 let tag_len = tag.input_len(); in tag_no_case() localVariable 85 CompareResult::Ok => Ok(i.take_split(tag_len)), in tag_no_case() 86 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag_no_case()
|
D | complete.rs | 40 let tag_len = tag.input_len(); in tag() localVariable 43 CompareResult::Ok => Ok(i.take_split(tag_len)), in tag() 82 let tag_len = tag.input_len(); in tag_no_case() localVariable 86 CompareResult::Ok => Ok(i.take_split(tag_len)), in tag_no_case()
|
/third_party/libwebsockets/lib/misc/cache-ttl/ |
D | lws-cache-ttl.c | 267 walk_ctx->tag_len = lws_ser_ru32be(walk_ctx->ptr + 4); in lws_cache_results_walk() 270 walk_ctx->ptr += walk_ctx->tag_len + 1 + 8; in lws_cache_results_walk() 271 walk_ctx->size -= walk_ctx->tag_len + 1 + 8; in lws_cache_results_walk()
|
/third_party/ffmpeg/libavformat/ |
D | swfenc.c | 67 int tag_len, tag; in put_swf_end_tag() local 70 tag_len = pos - swf->tag_pos - 2; in put_swf_end_tag() 76 avio_wl32(pb, tag_len - 4); in put_swf_end_tag() 78 av_assert0(tag_len < 0x3f); in put_swf_end_tag() 79 avio_wl16(pb, (tag << 6) | tag_len); in put_swf_end_tag()
|
D | omadec.c | 577 unsigned tag_len = 0; in oma_read_probe() local 580 tag_len = ff_id3v2_tag_len(buf); in oma_read_probe() 583 if (p->buf_size < tag_len + 5) in oma_read_probe() 585 return tag_len ? AVPROBE_SCORE_EXTENSION/2 : 0; in oma_read_probe() 587 buf += tag_len; in oma_read_probe()
|
D | vqf.c | 53 unsigned int tag_len, unsigned int remaining) in add_metadata() argument 55 int len = FFMIN(tag_len, remaining); in add_metadata()
|
/third_party/libwebsockets/lib/tls/mbedtls/ |
D | mbedtls-extensions.c | 286 size_t len, tag_len; in lws_x509_get_general_names() local 306 r = mbedtls_asn1_get_len(p, end, &tag_len); in lws_x509_get_general_names() 359 buf->MBEDTLS_PRIVATE(len) = tag_len; in lws_x509_get_general_names()
|
/third_party/openssl/crypto/cms/ |
D | cms_enc.c | 172 aparams.tag_len = EVP_CIPHER_CTX_get_tag_length(ctx); in ossl_cms_EncryptedContent_init_bio() 173 if (aparams.tag_len <= 0) in ossl_cms_EncryptedContent_init_bio()
|
/third_party/musl/porting/linux/user/src/hilog/ |
D | hilog_common.h | 36 uint16_t tag_len : 6; /* include '\0' */ member
|
/third_party/openssl/crypto/evp/ |
D | e_chacha20_poly1305.c | 159 int aad, mac_inited, tag_len, nonce_len; member 481 if (CRYPTO_memcmp(temp, actx->tag, actx->tag_len)) in chacha20_poly1305_cipher() 514 actx->tag_len = 0; in chacha20_poly1305_ctrl() 559 actx->tag_len = arg; in chacha20_poly1305_ctrl()
|
/third_party/openssl/providers/implementations/ciphers/ |
D | cipher_chacha20_poly1305.h | 28 size_t tag_len, nonce_len; member
|