Home
last modified time | relevance | path

Searched refs:tag_len (Results 1 – 25 of 46) sorted by relevance

12

/external/chromium_org/third_party/boringssl/src/crypto/cipher/
De_chacha20poly1305.c31 unsigned char tag_len; member
35 size_t key_len, size_t tag_len) { in aead_chacha20_poly1305_init() argument
38 if (tag_len == 0) { in aead_chacha20_poly1305_init()
39 tag_len = POLY1305_TAG_LEN; in aead_chacha20_poly1305_init()
42 if (tag_len > POLY1305_TAG_LEN) { in aead_chacha20_poly1305_init()
57 c20_ctx->tag_len = tag_len; in aead_chacha20_poly1305_init()
112 if (in_len + c20_ctx->tag_len < in_len) { in aead_chacha20_poly1305_seal()
117 if (max_out_len < in_len + c20_ctx->tag_len) { in aead_chacha20_poly1305_seal()
137 if (c20_ctx->tag_len != POLY1305_TAG_LEN) { in aead_chacha20_poly1305_seal()
140 memcpy(out + in_len, tag, c20_ctx->tag_len); in aead_chacha20_poly1305_seal()
[all …]
De_rc4.c100 unsigned char tag_len; member
106 size_t tag_len) { in aead_rc4_md5_tls_init() argument
111 if (tag_len == EVP_AEAD_DEFAULT_TAG_LENGTH) { in aead_rc4_md5_tls_init()
112 tag_len = MD5_DIGEST_LENGTH; in aead_rc4_md5_tls_init()
115 if (tag_len > MD5_DIGEST_LENGTH) { in aead_rc4_md5_tls_init()
150 rc4_ctx->tag_len = tag_len; in aead_rc4_md5_tls_init()
186 if (in_len + rc4_ctx->tag_len < in_len) { in aead_rc4_md5_tls_seal()
196 if (max_out_len < in_len + rc4_ctx->tag_len) { in aead_rc4_md5_tls_seal()
249 if (rc4_ctx->tag_len == MD5_DIGEST_LENGTH) { in aead_rc4_md5_tls_seal()
253 memcpy(out + in_len, digest, rc4_ctx->tag_len); in aead_rc4_md5_tls_seal()
[all …]
De_aes.c846 uint8_t tag_len; member
850 size_t key_len, size_t tag_len) { in aead_aes_gcm_init() argument
859 if (tag_len == EVP_AEAD_DEFAULT_TAG_LENGTH) { in aead_aes_gcm_init()
860 tag_len = EVP_AEAD_AES_GCM_TAG_LEN; in aead_aes_gcm_init()
863 if (tag_len > EVP_AEAD_AES_GCM_TAG_LEN) { in aead_aes_gcm_init()
882 gcm_ctx->tag_len = tag_len; in aead_aes_gcm_init()
903 if (in_len + gcm_ctx->tag_len < in_len) { in aead_aes_gcm_seal()
908 if (max_out_len < in_len + gcm_ctx->tag_len) { in aead_aes_gcm_seal()
931 CRYPTO_gcm128_tag(&gcm, out + in_len, gcm_ctx->tag_len); in aead_aes_gcm_seal()
932 *out_len = in_len + gcm_ctx->tag_len; in aead_aes_gcm_seal()
[all …]
Daead.c34 const uint8_t *key, size_t key_len, size_t tag_len, in EVP_AEAD_CTX_init() argument
41 return aead->init(ctx, key, key_len, tag_len); in EVP_AEAD_CTX_init()
/external/tcpdump/
Dprint-pppoe.c145 u_short tag_type = 0xffff, tag_len; in pppoe_print() local
156 tag_len = EXTRACT_16BITS(p + 2); in pppoe_print()
160 if (tag_len) { in pppoe_print()
167 TCHECK2(*p, tag_len); in pppoe_print()
168 for (v = p; v < p + tag_len && tag_str_len < MAXTAGPRINT-1; v++) in pppoe_print()
187 for (v=p; v<p+tag_len; v++) { in pppoe_print()
198 p += tag_len; in pppoe_print()
/external/srtp/srtp/
Dsrtp.c606 int tag_len; in srtp_protect() local
684 tag_len = auth_get_tag_length(stream->rtp_auth); in srtp_protect()
823 octet_string_hex_string(auth_tag, tag_len)); in srtp_protect()
832 *pkt_octet_len += tag_len; in srtp_protect()
852 int tag_len, prefix_len; in srtp_unprotect() local
913 tag_len = auth_get_tag_length(stream->rtp_auth); in srtp_unprotect()
969 enc_octet_len = (uint32_t)(*pkt_octet_len - tag_len in srtp_unprotect()
982 auth_tag = (uint8_t *)hdr + *pkt_octet_len - tag_len; in srtp_unprotect()
1017 *pkt_octet_len - tag_len); in srtp_unprotect()
1023 octet_string_hex_string(tmp_tag, tag_len)); in srtp_unprotect()
[all …]
/external/chromium_org/third_party/libsrtp/srtp/srtp/
Dsrtp.c749 int tag_len; in srtp_protect() local
828 tag_len = auth_get_tag_length(stream->rtp_auth); in srtp_protect()
967 octet_string_hex_string(auth_tag, tag_len)); in srtp_protect()
976 *pkt_octet_len += tag_len; in srtp_protect()
996 int tag_len, prefix_len; in srtp_unprotect() local
1058 tag_len = auth_get_tag_length(stream->rtp_auth); in srtp_unprotect()
1114 enc_octet_len = (uint32_t)(*pkt_octet_len - tag_len in srtp_unprotect()
1127 auth_tag = (uint8_t *)hdr + *pkt_octet_len - tag_len; in srtp_unprotect()
1162 *pkt_octet_len - tag_len); in srtp_unprotect()
1168 octet_string_hex_string(tmp_tag, tag_len)); in srtp_unprotect()
[all …]
/external/srtp/crypto/hash/
Dhmac.c171 int msg_octets, int tag_len, uint8_t *result) { in hmac_compute() argument
177 if (tag_len > 20) in hmac_compute()
204 for (i=0; i < tag_len; i++) in hmac_compute()
208 octet_string_hex_string((uint8_t *)hash_value, tag_len)); in hmac_compute()
/external/chromium_org/third_party/libsrtp/srtp/crypto/hash/
Dhmac.c171 int msg_octets, int tag_len, uint8_t *result) { in hmac_compute() argument
177 if (tag_len > 20) in hmac_compute()
204 for (i=0; i < tag_len; i++) in hmac_compute()
208 octet_string_hex_string((uint8_t *)hash_value, tag_len)); in hmac_compute()
/external/chromium_org/third_party/boringssl/src/crypto/modes/
Dgcm_test.c315 tag_len; in run_test_case() local
330 !decode_hex(&tag, &tag_len, test->tag, test_num, "tag")) { in run_test_case()
345 if (tag_len != 16) { in run_test_case()
365 if (!CRYPTO_gcm128_finish(&ctx, tag, tag_len) || in run_test_case()
381 if (!CRYPTO_gcm128_finish(&ctx, tag, tag_len)) { in run_test_case()
/external/protobuf/python/google/protobuf/internal/
Ddecoder.py204 tag_len = len(tag_bytes)
214 pos = new_pos + tag_len
314 tag_len = len(tag_bytes)
326 pos = new_pos + tag_len
351 tag_len = len(tag_bytes)
363 pos = new_pos + tag_len
390 tag_len = len(tag_bytes)
406 pos = new_pos + tag_len
435 tag_len = len(tag_bytes)
455 pos = new_pos + tag_len
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/
Ddecoder.py211 tag_len = len(tag_bytes)
221 pos = new_pos + tag_len
387 tag_len = len(tag_bytes)
399 pos = new_pos + tag_len
424 tag_len = len(tag_bytes)
436 pos = new_pos + tag_len
463 tag_len = len(tag_bytes)
479 pos = new_pos + tag_len
508 tag_len = len(tag_bytes)
528 pos = new_pos + tag_len
/external/srtp/include/
Dekt.h165 unsigned tag_len);
170 unsigned tag_len);
/external/chromium_org/third_party/libsrtp/srtp/include/
Dekt.h165 unsigned tag_len);
170 unsigned tag_len);
/external/chromium_org/third_party/libjingle/source/talk/session/media/
Dexternalhmac.cc154 int tag_len, in external_hmac_compute() argument
156 memcpy(result, kExternalHmacFakeTag, tag_len); in external_hmac_compute()
Dexternalhmac.h84 int tag_len,
/external/kernel-headers/original/uapi/linux/
Dvirtio_9p.h39 __u16 tag_len; member
/external/chromium_org/net/quic/crypto/
Daes_128_gcm_12_decrypter_test.cc51 size_t tag_len; member
301 EXPECT_EQ(test_info.tag_len, tag.length() * 8); in TEST()
Daes_128_gcm_12_encrypter_test.cc51 size_t tag_len; member
253 EXPECT_EQ(test_info.tag_len, tag.length() * 8); in TEST()
/external/srtp/crypto/include/
Dnull_auth.h65 int msg_octets, int tag_len, uint8_t *result);
Dhmac.h75 int msg_octets, int tag_len, uint8_t *result);
Dcrypto_kernel.h220 int tag_len);
/external/chromium_org/third_party/libsrtp/srtp/crypto/include/
Dnull_auth.h65 int msg_octets, int tag_len, uint8_t *result);
Dhmac.h75 int msg_octets, int tag_len, uint8_t *result);
/external/srtp/googlepatches/
Dgoogle-7-srtp-security-fix.patch62 tag_len = auth_get_tag_length(stream->rtcp_auth);
67 *pkt_octet_len -(tag_len + sizeof(srtcp_trailer_t)));

12