Home
last modified time | relevance | path

Searched refs:plen (Results 1 - 25 of 872) sorted by relevance

12345678910>>...35

/kernel/linux/linux-5.10/crypto/
H A Dtcrypt.h27 unsigned int plen; /* per-update length */ member
72 { .blen = 16, .plen = 16, },
73 { .blen = 64, .plen = 16, },
74 { .blen = 64, .plen = 64, },
75 { .blen = 256, .plen = 16, },
76 { .blen = 256, .plen = 64, },
77 { .blen = 256, .plen = 256, },
78 { .blen = 1024, .plen = 16, },
79 { .blen = 1024, .plen = 256, },
80 { .blen = 1024, .plen
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dtcrypt.h27 unsigned int plen; /* per-update length */ member
72 { .blen = 16, .plen = 16, },
73 { .blen = 64, .plen = 16, },
74 { .blen = 64, .plen = 64, },
75 { .blen = 256, .plen = 16, },
76 { .blen = 256, .plen = 64, },
77 { .blen = 256, .plen = 256, },
78 { .blen = 1024, .plen = 16, },
79 { .blen = 1024, .plen = 256, },
80 { .blen = 1024, .plen
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c124 size_t tail, tohash_len, buf_len, plen = ctx->tls_payload_length; in chacha20_poly1305_tls_cipher() local
134 if (plen <= 3 * CHACHA_BLK_SIZE) { in chacha20_poly1305_tls_cipher()
136 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher()
143 ctx->len.text = plen; in chacha20_poly1305_tls_cipher()
145 if (plen) { in chacha20_poly1305_tls_cipher()
147 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
149 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
151 in += plen; in chacha20_poly1305_tls_cipher()
152 out += plen; in chacha20_poly1305_tls_cipher()
157 if (plen < in chacha20_poly1305_tls_cipher()
273 size_t rem, plen = ctx->tls_payload_length; chacha20_poly1305_aead_cipher() local
[all...]
H A Dcipher_rc4_hmac_md5_hw.c61 size_t plen = ctx->payload_length; in cipher_hw_rc4_hmac_md5_cipher() local
63 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in cipher_hw_rc4_hmac_md5_cipher()
67 if (plen == NO_PAYLOAD_LENGTH) in cipher_hw_rc4_hmac_md5_cipher()
68 plen = len; in cipher_hw_rc4_hmac_md5_cipher()
74 if (plen > md5_off in cipher_hw_rc4_hmac_md5_cipher()
75 && (blocks = (plen - md5_off) / MD5_CBLOCK) in cipher_hw_rc4_hmac_md5_cipher()
94 MD5_Update(&ctx->md, in + md5_off, plen - md5_off); in cipher_hw_rc4_hmac_md5_cipher()
96 if (plen != len) { /* "TLS" mode of operation */ in cipher_hw_rc4_hmac_md5_cipher()
98 memcpy(out + rc4_off, in + rc4_off, plen in cipher_hw_rc4_hmac_md5_cipher()
[all...]
/third_party/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c124 size_t tail, tohash_len, buf_len, plen = ctx->tls_payload_length; in chacha20_poly1305_tls_cipher() local
134 if (plen <= 3 * CHACHA_BLK_SIZE) { in chacha20_poly1305_tls_cipher()
136 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher()
143 ctx->len.text = plen; in chacha20_poly1305_tls_cipher()
145 if (plen) { in chacha20_poly1305_tls_cipher()
147 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
149 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
151 in += plen; in chacha20_poly1305_tls_cipher()
152 out += plen; in chacha20_poly1305_tls_cipher()
157 if (plen < in chacha20_poly1305_tls_cipher()
273 size_t rem, plen = ctx->tls_payload_length; chacha20_poly1305_aead_cipher() local
[all...]
H A Dcipher_rc4_hmac_md5_hw.c61 size_t plen = ctx->payload_length; in cipher_hw_rc4_hmac_md5_cipher() local
63 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in cipher_hw_rc4_hmac_md5_cipher()
67 if (plen == NO_PAYLOAD_LENGTH) in cipher_hw_rc4_hmac_md5_cipher()
68 plen = len; in cipher_hw_rc4_hmac_md5_cipher()
74 if (plen > md5_off in cipher_hw_rc4_hmac_md5_cipher()
75 && (blocks = (plen - md5_off) / MD5_CBLOCK) in cipher_hw_rc4_hmac_md5_cipher()
94 MD5_Update(&ctx->md, in + md5_off, plen - md5_off); in cipher_hw_rc4_hmac_md5_cipher()
96 if (plen != len) { /* "TLS" mode of operation */ in cipher_hw_rc4_hmac_md5_cipher()
98 memcpy(out + rc4_off, in + rc4_off, plen in cipher_hw_rc4_hmac_md5_cipher()
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Drpl.c67 unsigned char plen; in ipv6_rpl_srh_calc_cmpri() local
70 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpri()
72 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri()
73 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri()
74 return plen; in ipv6_rpl_srh_calc_cmpri()
84 unsigned int plen; in ipv6_rpl_srh_calc_cmpre() local
86 for (plen = 0; plen < sizeo in ipv6_rpl_srh_calc_cmpre()
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Drpl.c60 unsigned char plen; in ipv6_rpl_srh_calc_cmpri() local
63 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpri()
65 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri()
66 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri()
67 return plen; in ipv6_rpl_srh_calc_cmpri()
77 unsigned int plen; in ipv6_rpl_srh_calc_cmpre() local
79 for (plen = 0; plen < sizeo in ipv6_rpl_srh_calc_cmpre()
[all...]
/third_party/node/deps/openssl/openssl/crypto/evp/
H A De_chacha20_poly1305.c218 size_t tail, tohash_len, buf_len, plen = actx->tls_payload_length; in chacha20_poly1305_tls_cipher() local
221 if (len != plen + POLY1305_BLOCK_SIZE) in chacha20_poly1305_tls_cipher()
229 if (plen <= 3 * CHACHA_BLK_SIZE) { in chacha20_poly1305_tls_cipher()
231 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher()
239 actx->len.text = plen; in chacha20_poly1305_tls_cipher()
241 if (plen) { in chacha20_poly1305_tls_cipher()
243 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
245 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
247 in += plen; in chacha20_poly1305_tls_cipher()
248 out += plen; in chacha20_poly1305_tls_cipher()
302 Poly1305_Update(POLY1305_ctx(actx), out, plen); chacha20_poly1305_tls_cipher() local
304 Poly1305_Update(POLY1305_ctx(actx), in, plen); chacha20_poly1305_tls_cipher() local
368 size_t rem, plen = actx->tls_payload_length; chacha20_poly1305_cipher() local
413 Poly1305_Update(POLY1305_ctx(actx), out, plen); chacha20_poly1305_cipher() local
418 Poly1305_Update(POLY1305_ctx(actx), in, plen); chacha20_poly1305_cipher() local
[all...]
H A De_rc4_hmac_md5.c86 size_t plen = key->payload_length; in rc4_hmac_md5_cipher() local
88 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in rc4_hmac_md5_cipher()
92 if (plen == NO_PAYLOAD_LENGTH) in rc4_hmac_md5_cipher()
93 plen = len; in rc4_hmac_md5_cipher()
99 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
118 MD5_Update(&key->md, in + md5_off, plen - md5_off); in rc4_hmac_md5_cipher()
120 if (plen != len) { /* "TLS" mode of operation */ in rc4_hmac_md5_cipher()
122 memcpy(out + rc4_off, in + rc4_off, plen in rc4_hmac_md5_cipher()
[all...]
/third_party/openssl/crypto/evp/
H A De_chacha20_poly1305.c218 size_t tail, tohash_len, buf_len, plen = actx->tls_payload_length; in chacha20_poly1305_tls_cipher() local
221 if (len != plen + POLY1305_BLOCK_SIZE) in chacha20_poly1305_tls_cipher()
229 if (plen <= 3 * CHACHA_BLK_SIZE) { in chacha20_poly1305_tls_cipher()
231 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher()
239 actx->len.text = plen; in chacha20_poly1305_tls_cipher()
241 if (plen) { in chacha20_poly1305_tls_cipher()
243 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
245 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
247 in += plen; in chacha20_poly1305_tls_cipher()
248 out += plen; in chacha20_poly1305_tls_cipher()
302 Poly1305_Update(POLY1305_ctx(actx), out, plen); chacha20_poly1305_tls_cipher() local
304 Poly1305_Update(POLY1305_ctx(actx), in, plen); chacha20_poly1305_tls_cipher() local
368 size_t rem, plen = actx->tls_payload_length; chacha20_poly1305_cipher() local
413 Poly1305_Update(POLY1305_ctx(actx), out, plen); chacha20_poly1305_cipher() local
418 Poly1305_Update(POLY1305_ctx(actx), in, plen); chacha20_poly1305_cipher() local
[all...]
H A De_rc4_hmac_md5.c86 size_t plen = key->payload_length; in rc4_hmac_md5_cipher() local
88 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in rc4_hmac_md5_cipher()
92 if (plen == NO_PAYLOAD_LENGTH) in rc4_hmac_md5_cipher()
93 plen = len; in rc4_hmac_md5_cipher()
99 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
118 MD5_Update(&key->md, in + md5_off, plen - md5_off); in rc4_hmac_md5_cipher()
120 if (plen != len) { /* "TLS" mode of operation */ in rc4_hmac_md5_cipher()
122 memcpy(out + rc4_off, in + rc4_off, plen in rc4_hmac_md5_cipher()
[all...]
/kernel/linux/linux-6.6/lib/crypto/
H A Daesgcm.c555 int plen; member
565 .plen = sizeof(ptext1),
575 .plen = sizeof(ptext2),
585 .plen = sizeof(ptext3),
599 .plen = sizeof(ptext1),
610 .plen = sizeof(ptext6),
620 .plen = sizeof(ptext1),
632 .plen = sizeof(ptext9),
644 .plen = sizeof(ptext10),
659 .plen
685 int plen = aesgcm_tv[i].plen; libaesgcm_init() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
H A Dtlsv1_record.c356 size_t plen; in tlsv1_record_receive() local
362 plen = in_len; in tlsv1_record_receive()
364 "data", out_data, plen); in tlsv1_record_receive()
380 if (plen < rl->iv_size) { in tlsv1_record_receive()
387 plen - rl->iv_size); in tlsv1_record_receive()
388 plen -= rl->iv_size; in tlsv1_record_receive()
392 if (plen == 0) { in tlsv1_record_receive()
398 padlen = out_data[plen - 1]; in tlsv1_record_receive()
399 if (padlen >= plen) { in tlsv1_record_receive()
401 "length (%u, plen in tlsv1_record_receive()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
H A Dtlsv1_record.c356 size_t plen; in tlsv1_record_receive() local
362 plen = in_len; in tlsv1_record_receive()
364 "data", out_data, plen); in tlsv1_record_receive()
380 if (plen < rl->iv_size) { in tlsv1_record_receive()
387 plen - rl->iv_size); in tlsv1_record_receive()
388 plen -= rl->iv_size; in tlsv1_record_receive()
392 if (plen == 0) { in tlsv1_record_receive()
398 padlen = out_data[plen - 1]; in tlsv1_record_receive()
399 if (padlen >= plen) { in tlsv1_record_receive()
401 "length (%u, plen in tlsv1_record_receive()
[all...]
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Dbio_ndef.c45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen,
48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen,
129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument
155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix()
160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument
177 *plen = 0; in ndef_prefix_free()
181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_suffix_free() argument
185 if (!ndef_prefix_free(b, pbuf, plen, par in ndef_suffix_free()
192 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) ndef_suffix() argument
[all...]
/third_party/openssl/crypto/asn1/
H A Dbio_ndef.c45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen,
48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen,
129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument
155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix()
160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument
177 *plen = 0; in ndef_prefix_free()
181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_suffix_free() argument
185 if (!ndef_prefix_free(b, pbuf, plen, par in ndef_suffix_free()
192 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) ndef_suffix() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtest_vxlan_mdb.sh984 local plen=$1; shift
997 run_cmd "ip -n $ns2 address replace $vtep1_ip/$plen dev lo"
998 run_cmd "ip -n $ns2 address replace $vtep2_ip/$plen dev lo"
1079 local plen=32
1088 encap_params_common $ns1 $ns2 $vtep1_ip $vtep2_ip $plen $enc_ethtype \
1098 local plen=32
1107 encap_params_common $ns1 $ns2 $vtep1_ip $vtep2_ip $plen $enc_ethtype \
1117 local plen=128
1126 encap_params_common $ns1 $ns2 $vtep1_ip $vtep2_ip $plen $enc_ethtype \
1136 local plen
[all...]
/kernel/linux/linux-5.10/arch/x86/platform/olpc/
H A Dolpc_dt.c72 int plen; in olpc_dt_getproperty() local
74 plen = olpc_dt_getproplen(node, prop); in olpc_dt_getproperty()
75 if (plen > bufsize || plen < 1) { in olpc_dt_getproperty()
78 const void *args[] = { (void *)node, prop, buf, (void *)plen }; in olpc_dt_getproperty()
79 void *res[] = { &plen }; in olpc_dt_getproperty()
87 return plen; in olpc_dt_getproperty()
222 int plen, len; in olpc_dt_compatible_match() local
224 plen = olpc_dt_getproperty(node, "compatible", buf, sizeof(buf)); in olpc_dt_compatible_match()
225 if (plen < in olpc_dt_compatible_match()
[all...]
/kernel/linux/linux-6.6/arch/x86/platform/olpc/
H A Dolpc_dt.c72 int plen; in olpc_dt_getproperty() local
74 plen = olpc_dt_getproplen(node, prop); in olpc_dt_getproperty()
75 if (plen > bufsize || plen < 1) { in olpc_dt_getproperty()
78 const void *args[] = { (void *)node, prop, buf, (void *)plen }; in olpc_dt_getproperty()
79 void *res[] = { &plen }; in olpc_dt_getproperty()
87 return plen; in olpc_dt_getproperty()
222 int plen, len; in olpc_dt_compatible_match() local
224 plen = olpc_dt_getproperty(node, "compatible", buf, sizeof(buf)); in olpc_dt_compatible_match()
225 if (plen < in olpc_dt_compatible_match()
[all...]
/kernel/linux/linux-5.10/certs/
H A Dcommon.c13 size_t plen; in load_certificate_list() local
26 plen = (p[2] << 8) | p[3]; in load_certificate_list()
27 plen += 4; in load_certificate_list()
28 if (plen > end - p) in load_certificate_list()
35 plen, in load_certificate_list()
49 p += plen; in load_certificate_list()
/kernel/linux/linux-6.6/crypto/asymmetric_keys/
H A Dx509_loader.c13 size_t plen; in x509_load_certificate_list() local
26 plen = (p[2] << 8) | p[3]; in x509_load_certificate_list()
27 plen += 4; in x509_load_certificate_list()
28 if (plen > end - p) in x509_load_certificate_list()
35 plen, in x509_load_certificate_list()
49 p += plen; in x509_load_certificate_list()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dfgetln.c28 size_t plen; in fgetln_0100() local
37 char *result = fgetln(f, &plen); in fgetln_0100()
44 if (plen != strlen(result)) { in fgetln_0100()
45 t_error("%s failed, plen is %zu\n", __func__, plen); in fgetln_0100()
59 size_t plen; in fgetln_0200() local
66 char *result = fgetln(f, &plen); in fgetln_0200()
/third_party/libwebsockets/lib/tls/
H A Dtls-network.c234 uint8_t *oos = os, *plen = NULL; in lws_alpn_comma_to_openssl() local
240 if (!plen && *comma == ' ') { in lws_alpn_comma_to_openssl()
244 if (!plen) { in lws_alpn_comma_to_openssl()
245 plen = os++; in lws_alpn_comma_to_openssl()
250 *plen = (uint8_t)lws_ptr_diff(os, plen + 1); in lws_alpn_comma_to_openssl()
251 plen = NULL; in lws_alpn_comma_to_openssl()
259 if (plen) in lws_alpn_comma_to_openssl()
260 *plen = (uint8_t)lws_ptr_diff(os, plen in lws_alpn_comma_to_openssl()
[all...]
/kernel/linux/linux-5.10/include/net/
H A Desp.h14 static inline void esp_output_fill_trailer(u8 *tail, int tfclen, int plen, __u8 proto) in esp_output_fill_trailer() argument
23 for (i = 0; i < plen - 2; i++) in esp_output_fill_trailer()
26 tail[plen - 2] = plen - 2; in esp_output_fill_trailer()
27 tail[plen - 1] = proto; in esp_output_fill_trailer()
35 int plen; member

Completed in 12 milliseconds

12345678910>>...35