/dflybsd-src/crypto/libressl/crypto/evp/ |
H A D | e_chacha20poly1305.c | 45 unsigned char tag_len; member 50 size_t key_len, size_t tag_len) in aead_chacha20_poly1305_init() argument 54 if (tag_len == 0) in aead_chacha20_poly1305_init() 55 tag_len = POLY1305_TAG_LEN; in aead_chacha20_poly1305_init() 57 if (tag_len > POLY1305_TAG_LEN) { in aead_chacha20_poly1305_init() 71 c20_ctx->tag_len = tag_len; in aead_chacha20_poly1305_init() 136 if (max_out_len < in_len + c20_ctx->tag_len) { in aead_chacha20_poly1305_seal() 161 if (c20_ctx->tag_len != POLY1305_TAG_LEN) { in aead_chacha20_poly1305_seal() 164 memcpy(out + in_len, tag, c20_ctx->tag_len); in aead_chacha20_poly1305_seal() 165 *out_len = in_len + c20_ctx->tag_len; in aead_chacha20_poly1305_seal() [all …]
|
H A D | evp_aead.c | 52 const unsigned char *key, size_t key_len, size_t tag_len, ENGINE *impl) in EVP_AEAD_CTX_init() argument 59 return aead->init(ctx, key, key_len, tag_len); in EVP_AEAD_CTX_init()
|
H A D | e_aes.c | 2235 unsigned char tag_len; member 2240 size_t tag_len) in aead_aes_gcm_init() argument 2251 if (tag_len == EVP_AEAD_DEFAULT_TAG_LENGTH) in aead_aes_gcm_init() 2252 tag_len = EVP_AEAD_AES_GCM_TAG_LEN; in aead_aes_gcm_init() 2254 if (tag_len > EVP_AEAD_AES_GCM_TAG_LEN) { in aead_aes_gcm_init() 2274 gcm_ctx->tag_len = tag_len; in aead_aes_gcm_init() 2298 if (max_out_len < in_len + gcm_ctx->tag_len) { in aead_aes_gcm_seal() 2324 CRYPTO_gcm128_tag(&gcm, out + in_len, gcm_ctx->tag_len); in aead_aes_gcm_seal() 2325 *out_len = in_len + gcm_ctx->tag_len; in aead_aes_gcm_seal() 2342 if (in_len < gcm_ctx->tag_len) { in aead_aes_gcm_open() [all …]
|
H A D | evp_locl.h | 281 size_t key_len, size_t tag_len);
|
/dflybsd-src/sys/netgraph7/ |
H A D | ng_tag.c | 135 return (hp->tag_len); in ng_tag_hookinary_getLength() 146 return (hp->tag_len); in ng_tag_hookoutary_getLength() 365 NG_TAG_HOOKIN_SIZE(hp->tag_len)) in ng_tag_rcvmsg() 387 NG_TAG_HOOKOUT_SIZE(hp->tag_len)) in ng_tag_rcvmsg() 417 NG_TAG_HOOKIN_SIZE(hp->tag_len), M_WAITOK); in ng_tag_rcvmsg() 420 NG_TAG_HOOKIN_SIZE(hp->tag_len)); in ng_tag_rcvmsg() 441 NG_TAG_HOOKOUT_SIZE(hp->tag_len), M_WAITOK); in ng_tag_rcvmsg() 444 NG_TAG_HOOKOUT_SIZE(hp->tag_len)); in ng_tag_rcvmsg() 507 uint16_t type, tag_len; in ng_tag_rcvdata() local 525 tag_len = hip->in_tag_len; in ng_tag_rcvdata() [all …]
|
H A D | ng_tag.h | 52 uint16_t tag_len; /* length of data */ member 61 uint16_t tag_len; /* length of data */ member
|
/dflybsd-src/contrib/tcpdump/ |
H A D | print-pppoe.c | 140 u_short tag_type = 0xffff, tag_len; in pppoe_print() local 150 tag_len = GET_BE_U_2(p + 2); in pppoe_print() 154 if (tag_len) { in pppoe_print() 161 ND_TCHECK_LEN(p, tag_len); in pppoe_print() 162 for (v = p; v < p + tag_len && tag_str_len < MAXTAGPRINT-1; v++) in pppoe_print() 181 for (v=p; v<p+tag_len; v++) { in pppoe_print() 192 p += tag_len; in pppoe_print()
|
/dflybsd-src/sys/netgraph/pppoe/ |
H A D | ng_pppoe.c | 297 ptn = (((const char *)(pt + 1)) + ntohs(pt->tag_len)); in get_tag() 370 tlen = ntohs((*tag)->tag_len) + sizeof(**tag); in make_packet() 714 neg->service.hdr.tag_len = in ng_pppoe_rcvmsg() 732 neg->service.hdr.tag_len = in ng_pppoe_rcvmsg() 754 neg->ac_name.hdr.tag_len = in ng_pppoe_rcvmsg() 779 neg->service.hdr.tag_len = in ng_pppoe_rcvmsg() 828 uniqtag.hdr.tag_len = htons((u_int16_t)sizeof(uniqtag.data)); in pppoe_start() 850 tlen = min(NG_HOOKSIZ - 1, ntohs(tag->tag_len)); in send_acname() 986 tag->tag_data, ntohs(tag->tag_len), in ng_pppoe_rcvdata() 1004 || (ntohs(utag->tag_len) != sizeof(sp))) { in ng_pppoe_rcvdata() [all …]
|
H A D | ng_pppoe.h | 179 u_int16_t tag_len; member
|
/dflybsd-src/sys/netgraph7/pppoe/ |
H A D | ng_pppoe.c | 315 ptn = (((const char *)(pt + 1)) + ntohs(pt->tag_len)); in get_tag() 387 tlen = ntohs((*tag)->tag_len) + sizeof(**tag); in make_packet() 433 if (neg->service_len != ntohs(tag->tag_len)) in pppoe_match_svc() 437 ntohs(tag->tag_len)) == 0) in pppoe_match_svc() 863 neg->service.hdr.tag_len = htons((uint16_t)srvlen); in ng_pppoe_rcvmsg() 879 neg->service.hdr.tag_len = in ng_pppoe_rcvmsg() 901 neg->ac_name.hdr.tag_len = in ng_pppoe_rcvmsg() 926 neg->service.hdr.tag_len = in ng_pppoe_rcvmsg() 1070 uniqtag.hdr.tag_len = htons((u_int16_t)sizeof(uniqtag.data)); in pppoe_start() 1101 tlen = min(NG_HOOKSIZ - 1, ntohs(tag->tag_len)); in send_acname() [all …]
|
H A D | ng_pppoe.h | 204 u_int16_t tag_len; member
|
/dflybsd-src/contrib/wpa_supplicant/src/wps/ |
H A D | httpread.c | 830 int tag_len = os_strlen(tag); in httpread_hdr_line_get() local 837 if (!os_strncasecmp(hdr, tag, tag_len)) { in httpread_hdr_line_get() 838 hdr += tag_len; in httpread_hdr_line_get()
|
/dflybsd-src/crypto/libressl/include/openssl/ |
H A D | evp.h | 1230 const unsigned char *key, size_t key_len, size_t tag_len, ENGINE *impl);
|