/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
H A D | cipher_chacha20_poly1305_hw.c | 124 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 D | cipher_rc4_hmac_md5_hw.c | 61 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 D | cipher_chacha20_poly1305_hw.c | 124 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 D | cipher_rc4_hmac_md5_hw.c | 61 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/node/deps/openssl/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 218 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 D | e_rc4_hmac_md5.c | 86 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 D | e_chacha20_poly1305.c | 218 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 D | e_rc4_hmac_md5.c | 86 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/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | tlsv1_record.c | 356 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 D | tlsv1_record.c | 356 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 D | bio_ndef.c | 45 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...] |
H A D | tasn_dec.c | 40 static int collect_data(BUF_MEM *buf, const unsigned char **p, long plen); 704 long plen; in asn1_d2i_ex_primitive() local 749 ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst, in asn1_d2i_ex_primitive() 776 if (!asn1_find_end(&p, plen, inf)) in asn1_d2i_ex_primitive() 780 len = p - cont + plen; in asn1_d2i_ex_primitive() 781 p += plen; in asn1_d2i_ex_primitive() 799 if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) { in asn1_d2i_ex_primitive() 812 len = plen; in asn1_d2i_ex_primitive() 813 p += plen; in asn1_d2i_ex_primitive() 976 long plen; in asn1_find_end() local 1044 long plen; asn1_collect() local 1097 collect_data(BUF_MEM *buf, const unsigned char **p, long plen) collect_data() argument 1142 long plen; asn1_check_tlen() local [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | bio_ndef.c | 45 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...] |
H A D | tasn_dec.c | 40 static int collect_data(BUF_MEM *buf, const unsigned char **p, long plen); 704 long plen; in asn1_d2i_ex_primitive() local 749 ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst, in asn1_d2i_ex_primitive() 776 if (!asn1_find_end(&p, plen, inf)) in asn1_d2i_ex_primitive() 780 len = p - cont + plen; in asn1_d2i_ex_primitive() 781 p += plen; in asn1_d2i_ex_primitive() 799 if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) { in asn1_d2i_ex_primitive() 812 len = plen; in asn1_d2i_ex_primitive() 813 p += plen; in asn1_d2i_ex_primitive() 976 long plen; in asn1_find_end() local 1044 long plen; asn1_collect() local 1097 collect_data(BUF_MEM *buf, const unsigned char **p, long plen) collect_data() argument 1142 long plen; asn1_check_tlen() local [all...] |
/third_party/libwebsockets/lib/tls/ |
H A D | tls-network.c | 234 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...] |
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | fgetln.c | 28 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/mesa3d/src/freedreno/rnn/ |
H A D | path.c | 33 size_t plen; in find_in_path() local 35 plen = npath - path; in find_in_path() 38 plen = strlen(path); in find_in_path() 40 if (plen) { in find_in_path() 46 int ret = asprintf(&fullname, "%.*s/%s%s", (int)plen, path, name, exts[i]); in find_in_path()
|
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ecx_backend.c | 159 const unsigned char *p, int plen, in ossl_ecx_key_op() 184 if (p == NULL || id == EVP_PKEY_NONE || plen != KEYLENID(id)) { in ossl_ecx_key_op() 198 memcpy(pubkey, p, plen); in ossl_ecx_key_op() 238 int plen; in ossl_ecx_key_from_pkcs8() local 242 if (!PKCS8_pkey_get0(NULL, &p, &plen, &palg, p8inf)) in ossl_ecx_key_from_pkcs8() 245 oct = d2i_ASN1_OCTET_STRING(NULL, &p, plen); in ossl_ecx_key_from_pkcs8() 248 plen = 0; in ossl_ecx_key_from_pkcs8() 251 plen = ASN1_STRING_length(oct); in ossl_ecx_key_from_pkcs8() 258 ecx = ossl_ecx_key_op(palg, p, plen, EVP_PKEY_NONE, KEY_OP_PRIVATE, in ossl_ecx_key_from_pkcs8() 158 ossl_ecx_key_op(const X509_ALGOR *palg, const unsigned char *p, int plen, int id, ecx_key_op_t op, OSSL_LIB_CTX *libctx, const char *propq) ossl_ecx_key_op() argument
|
/third_party/openssl/crypto/ec/ |
H A D | ecx_backend.c | 156 const unsigned char *p, int plen, in ossl_ecx_key_op() 181 if (p == NULL || id == EVP_PKEY_NONE || plen != KEYLENID(id)) { in ossl_ecx_key_op() 195 memcpy(pubkey, p, plen); in ossl_ecx_key_op() 235 int plen; in ossl_ecx_key_from_pkcs8() local 239 if (!PKCS8_pkey_get0(NULL, &p, &plen, &palg, p8inf)) in ossl_ecx_key_from_pkcs8() 242 oct = d2i_ASN1_OCTET_STRING(NULL, &p, plen); in ossl_ecx_key_from_pkcs8() 245 plen = 0; in ossl_ecx_key_from_pkcs8() 248 plen = ASN1_STRING_length(oct); in ossl_ecx_key_from_pkcs8() 255 ecx = ossl_ecx_key_op(palg, p, plen, EVP_PKEY_NONE, KEY_OP_PRIVATE, in ossl_ecx_key_from_pkcs8() 155 ossl_ecx_key_op(const X509_ALGOR *palg, const unsigned char *p, int plen, int id, ecx_key_op_t op, OSSL_LIB_CTX *libctx, const char *propq) ossl_ecx_key_op() argument
|
/third_party/curl/lib/vauth/ |
H A D | cleartext.c | 71 size_t plen; in Curl_auth_create_plain_message() local 75 plen = strlen(passwd); in Curl_auth_create_plain_message() 79 (plen > (SIZE_T_MAX/2 - 2))) in Curl_auth_create_plain_message() 81 plainlen = zlen + clen + plen + 2; in Curl_auth_create_plain_message() 93 memcpy(plainauth + zlen + clen + 2, passwd, plen); in Curl_auth_create_plain_message()
|
/third_party/node/deps/openssl/openssl/crypto/cms/ |
H A D | cms_dh.c | 31 int plen; in dh_cms_set_peerkey() local 45 plen = ASN1_STRING_length(pubkey); in dh_cms_set_peerkey() 47 if (p == NULL || plen == 0) in dh_cms_set_peerkey() 50 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, plen)) == NULL) in dh_cms_set_peerkey() 56 plen = EVP_PKEY_get_size(pk); in dh_cms_set_peerkey() 59 if ((buf = OPENSSL_malloc(plen)) == NULL) in dh_cms_set_peerkey() 61 if (BN_bn2binpad(bnpub, buf, plen) < 0) in dh_cms_set_peerkey() 67 || !EVP_PKEY_set1_encoded_public_key(pkpeer, buf, plen)) in dh_cms_set_peerkey() 88 int keylen, plen; in dh_cms_set_shared_info() local 113 plen in dh_cms_set_shared_info() [all...] |
/third_party/openssl/crypto/cms/ |
H A D | cms_dh.c | 31 int plen; in dh_cms_set_peerkey() local 45 plen = ASN1_STRING_length(pubkey); in dh_cms_set_peerkey() 47 if (p == NULL || plen == 0) in dh_cms_set_peerkey() 50 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, plen)) == NULL) in dh_cms_set_peerkey() 56 plen = EVP_PKEY_get_size(pk); in dh_cms_set_peerkey() 59 if ((buf = OPENSSL_malloc(plen)) == NULL) in dh_cms_set_peerkey() 61 if (BN_bn2binpad(bnpub, buf, plen) < 0) in dh_cms_set_peerkey() 67 || !EVP_PKEY_set1_encoded_public_key(pkpeer, buf, plen)) in dh_cms_set_peerkey() 88 int keylen, plen; in dh_cms_set_shared_info() local 113 plen in dh_cms_set_shared_info() [all...] |
/third_party/pulseaudio/src/tests/ |
H A D | srbchannel-test.c | 39 size_t plen; in packet_received() local 42 pdata = pa_packet_data(packet, &plen); in packet_received() 43 fail_unless(packets_length == plen); in packet_received() 46 for (i = 0; i < plen; i++) in packet_received() 55 size_t plen; in packet_test() local 63 pdata = (uint8_t *) pa_packet_data(packet, &plen); in packet_test() 64 for (i = 0; i < plen; i++) { in packet_test()
|
/third_party/toybox/lib/ |
H A D | dirtree.c | 75 // Initial call can pass in NULL to plen, or point to an int initialized to 0 79 char *dirtree_path(struct dirtree *node, int *plen) in dirtree_path() argument 85 path = xmalloc(*plen); in dirtree_path() 86 *plen = 0; in dirtree_path() 90 len = (plen ? *plen : 0)+strlen(node->name)+1; in dirtree_path() 94 if (plen) *plen = len; in dirtree_path()
|
/third_party/toybox/porting/liteos_a/lib/ |
H A D | dirtree.c | 83 // Initial call can pass in NULL to plen, or point to an int initialized to 0 87 char *dirtree_path(struct dirtree *node, int *plen) in dirtree_path() argument 93 path = xmalloc(*plen); in dirtree_path() 94 *plen = 0; in dirtree_path() 98 len = (plen ? *plen : 0)+strlen(node->name)+1; in dirtree_path() 102 if (plen) *plen = len; in dirtree_path()
|