Home
last modified time | relevance | path

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

12

/external/boringssl/src/crypto/cipher/
De_tls.c56 size_t tag_len, enum evp_aead_direction_t dir, in aead_tls_init() argument
59 if (tag_len != EVP_AEAD_DEFAULT_TAG_LENGTH && in aead_tls_init()
60 tag_len != EVP_MD_size(md)) { in aead_tls_init()
354 size_t key_len, size_t tag_len, in aead_rc4_md5_tls_init() argument
356 return aead_tls_init(ctx, key, key_len, tag_len, dir, EVP_rc4(), EVP_md5(), in aead_rc4_md5_tls_init()
361 size_t key_len, size_t tag_len, in aead_rc4_sha1_tls_init() argument
363 return aead_tls_init(ctx, key, key_len, tag_len, dir, EVP_rc4(), EVP_sha1(), in aead_rc4_sha1_tls_init()
368 size_t key_len, size_t tag_len, in aead_aes_128_cbc_sha1_tls_init() argument
370 return aead_tls_init(ctx, key, key_len, tag_len, dir, EVP_aes_128_cbc(), in aead_aes_128_cbc_sha1_tls_init()
375 EVP_AEAD_CTX *ctx, const uint8_t *key, size_t key_len, size_t tag_len, in aead_aes_128_cbc_sha1_tls_implicit_iv_init() argument
[all …]
De_chacha20poly1305.c32 unsigned char tag_len; member
36 size_t key_len, size_t tag_len) { in aead_chacha20_poly1305_init() argument
39 if (tag_len == 0) { in aead_chacha20_poly1305_init()
40 tag_len = POLY1305_TAG_LEN; in aead_chacha20_poly1305_init()
43 if (tag_len > POLY1305_TAG_LEN) { in aead_chacha20_poly1305_init()
58 c20_ctx->tag_len = tag_len; in aead_chacha20_poly1305_init()
130 if (in_len + c20_ctx->tag_len < in_len) { in seal_impl()
135 if (max_out_len < in_len + c20_ctx->tag_len) { in seal_impl()
145 memcpy(out + in_len, tag, c20_ctx->tag_len); in seal_impl()
146 *out_len = in_len + c20_ctx->tag_len; in seal_impl()
[all …]
De_ssl3.c84 size_t tag_len, enum evp_aead_direction_t dir, in aead_ssl3_init() argument
86 if (tag_len != EVP_AEAD_DEFAULT_TAG_LENGTH && in aead_ssl3_init()
87 tag_len != EVP_MD_size(md)) { in aead_ssl3_init()
324 size_t key_len, size_t tag_len, in aead_rc4_md5_ssl3_init() argument
326 return aead_ssl3_init(ctx, key, key_len, tag_len, dir, EVP_rc4(), EVP_md5()); in aead_rc4_md5_ssl3_init()
330 size_t key_len, size_t tag_len, in aead_rc4_sha1_ssl3_init() argument
332 return aead_ssl3_init(ctx, key, key_len, tag_len, dir, EVP_rc4(), EVP_sha1()); in aead_rc4_sha1_ssl3_init()
336 size_t key_len, size_t tag_len, in aead_aes_128_cbc_sha1_ssl3_init() argument
338 return aead_ssl3_init(ctx, key, key_len, tag_len, dir, EVP_aes_128_cbc(), in aead_aes_128_cbc_sha1_ssl3_init()
343 size_t key_len, size_t tag_len, in aead_aes_256_cbc_sha1_ssl3_init() argument
[all …]
De_aes.c1059 uint8_t tag_len; member
1063 size_t key_len, size_t tag_len) { in aead_aes_gcm_init() argument
1072 if (tag_len == EVP_AEAD_DEFAULT_TAG_LENGTH) { in aead_aes_gcm_init()
1073 tag_len = EVP_AEAD_AES_GCM_TAG_LEN; in aead_aes_gcm_init()
1076 if (tag_len > EVP_AEAD_AES_GCM_TAG_LEN) { in aead_aes_gcm_init()
1088 gcm_ctx->tag_len = tag_len; in aead_aes_gcm_init()
1108 if (in_len + gcm_ctx->tag_len < in_len) { in aead_aes_gcm_seal()
1113 if (max_out_len < in_len + gcm_ctx->tag_len) { in aead_aes_gcm_seal()
1138 CRYPTO_gcm128_tag(&gcm, out + in_len, gcm_ctx->tag_len); in aead_aes_gcm_seal()
1139 *out_len = in_len + gcm_ctx->tag_len; in aead_aes_gcm_seal()
[all …]
Daead.c38 const uint8_t *key, size_t key_len, size_t tag_len, in EVP_AEAD_CTX_init() argument
45 return EVP_AEAD_CTX_init_with_direction(ctx, aead, key, key_len, tag_len, in EVP_AEAD_CTX_init()
51 size_t tag_len, in EVP_AEAD_CTX_init_with_direction() argument
63 ok = aead->init(ctx, key, key_len, tag_len); in EVP_AEAD_CTX_init_with_direction()
65 ok = aead->init_with_direction(ctx, key, key_len, tag_len, dir); in EVP_AEAD_CTX_init_with_direction()
Dinternal.h83 size_t tag_len);
85 size_t tag_len, enum evp_aead_direction_t dir);
/external/tcpdump/
Dprint-pppoe.c134 u_short tag_type = 0xffff, tag_len; in pppoe_print() local
145 tag_len = EXTRACT_16BITS(p + 2); in pppoe_print()
149 if (tag_len) { in pppoe_print()
156 ND_TCHECK2(*p, tag_len); in pppoe_print()
157 for (v = p; v < p + tag_len && tag_str_len < MAXTAGPRINT-1; v++) in pppoe_print()
176 for (v=p; v<p+tag_len; v++) { in pppoe_print()
187 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/boringssl/src/crypto/modes/
Dgcm_test.c303 tag_len; in run_test_case() local
318 !decode_hex(&tag, &tag_len, test->tag, test_num, "tag")) { in run_test_case()
333 if (tag_len != 16) { in run_test_case()
356 if (!CRYPTO_gcm128_finish(&ctx, tag, tag_len) || in run_test_case()
372 if (!CRYPTO_gcm128_finish(&ctx, tag, tag_len)) { in run_test_case()
/external/libevent/
Devent_tagging.c534 int tag_len; in evtag_unmarshal_fixed() local
537 if ((tag_len = evtag_unmarshal_header(src, &tag)) < 0 || in evtag_unmarshal_fixed()
541 if ((size_t)tag_len != len) in evtag_unmarshal_fixed()
553 int tag_len; in evtag_unmarshal_string() local
555 if ((tag_len = evtag_unmarshal_header(evbuf, &tag)) == -1 || in evtag_unmarshal_string()
559 *pstring = mm_malloc(tag_len + 1); in evtag_unmarshal_string()
564 evbuffer_remove(evbuf, *pstring, tag_len); in evtag_unmarshal_string()
565 (*pstring)[tag_len] = '\0'; in evtag_unmarshal_string()
/external/protobuf/python/google/protobuf/internal/
Ddecoder.py228 tag_len = len(tag_bytes)
238 pos = new_pos + tag_len
405 tag_len = len(tag_bytes)
421 pos = new_pos + tag_len
497 tag_len = len(tag_bytes)
509 pos = new_pos + tag_len
534 tag_len = len(tag_bytes)
546 pos = new_pos + tag_len
573 tag_len = len(tag_bytes)
589 pos = new_pos + tag_len
[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/nanopb-c/generator/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/webrtc/talk/session/media/
Dexternalhmac.cc158 int tag_len, in external_hmac_compute() argument
160 memcpy(result, kExternalHmacFakeTag, tag_len); in external_hmac_compute()
Dexternalhmac.h86 int tag_len,
Dsrtpfilter.h136 bool GetRtpAuthParams(uint8_t** key, int* key_len, int* tag_len);
224 bool GetRtpAuthParams(uint8_t** key, int* key_len, int* tag_len);
/external/boringssl/src/include/openssl/
Daead.h252 size_t tag_len, ENGINE *impl);
259 size_t tag_len, enum evp_aead_direction_t dir);
/external/libweave/third_party/libuweave/src/
Dmacaroon.c311 size_t tag_len; in uw_macaroon_deserialize_() local
313 &tag_len) || in uw_macaroon_deserialize_()
314 tag_len != UW_MACAROON_MAC_LEN) { in uw_macaroon_deserialize_()
/external/kernel-headers/original/uapi/linux/
Dvirtio_9p.h39 __u16 tag_len; member
/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)));
/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/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer.cc1091 size_t tag_len = value_len; in WriteCPUInformation() local
1094 tag_len = static_cast<size_t>(p - tag); in WriteCPUInformation()
1095 value += tag_len + 1; in WriteCPUInformation()
1096 value_len -= tag_len + 1; in WriteCPUInformation()
1098 tag_len = strlen(tag); in WriteCPUInformation()
1106 if (tag_len == strlen(entry->tag) && in WriteCPUInformation()
1107 !memcmp(tag, entry->tag, tag_len)) { in WriteCPUInformation()

12