Home
last modified time | relevance | path

Searched refs:temp_len (Results 1 – 18 of 18) sorted by relevance

/third_party/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djwe.c74 int n, ret = -1, temp_len = sizeof(temp); in test_jwe_a1() local
87 &temp_len) != 5) { in test_jwe_a1()
92 n = lws_jwe_auth_and_decrypt(&jwe, lws_concat_temp(temp, temp_len), in test_jwe_a1()
93 &temp_len); in test_jwe_a1()
116 temp_len = sizeof(temp); in test_jwe_a1()
137 jwe.jws.map.len[LJWS_JOSE] = (uint32_t)lws_snprintf(temp, (unsigned int)temp_len, in test_jwe_a1()
139 temp_len -= (int)jwe.jws.map.len[LJWS_JOSE]; in test_jwe_a1()
147 lws_concat_temp(temp, temp_len), &temp_len, in test_jwe_a1()
157 lws_concat_temp(temp, temp_len), in test_jwe_a1()
158 &temp_len, (unsigned int)n, in test_jwe_a1()
[all …]
Djws.c42 int n, temp_len = sizeof(temp), ret = -1; in test_jws_none() local
50 temp, &temp_len); in test_jws_none()
65 (char *)lws_concat_temp(temp, temp_len), in test_jws_none()
66 &temp_len) < 0 || !jose.alg) { in test_jws_none()
120 int temp_len = sizeof(temp); in test_jws_HS256() local
135 &temp_len) < 0 || !jose.alg) { in test_jws_HS256()
202 lws_concat_temp(temp, temp_len), &temp_len) < 0) { in test_jws_HS256()
283 int n, l, temp_len = sizeof(temp); in test_jws_RS256() local
312 &jwk, context, temp, &temp_len) < 0) { in test_jws_RS256()
325 in = lws_concat_temp(temp, temp_len); in test_jws_RS256()
[all …]
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/
Dmain.c24 int temp_len = sizeof(temp); in main() local
66 lws_concat_temp(temp, temp_len), in main()
67 &temp_len, strlen(p) + 10, 0)) { in main()
74 (unsigned int)temp_len, "{\"alg\":\"%s\"}", p); in main()
78 in = lws_concat_temp(temp, temp_len); in main()
79 n = (int)read(0, in, (unsigned int)temp_len); in main()
84 temp_len -= n; in main()
107 lws_concat_temp(temp, temp_len), in main()
108 &temp_len, jws.map.buf[LJWS_PYLD], in main()
115 lws_concat_temp(temp, temp_len), in main()
[all …]
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/
Dmain.c88 int temp_len = sizeof(temp); in main() local
138 lws_concat_temp(temp, temp_len), in main()
139 &temp_len, strlen(p) + in main()
146 (char *)jwe.jws.map.buf[LJWS_JOSE], (unsigned int)temp_len, in main()
152 in = lws_concat_temp(temp, temp_len); in main()
153 n = (int)read(0, in, (unsigned int)temp_len); in main()
161 temp_len -= (int)lws_gencrypto_padded_length(LWS_AES_CBC_BLOCKLEN, (unsigned int)n); in main()
191 lws_concat_temp(temp, temp_len), in main()
192 &temp_len, (unsigned int)n, in main()
200 n = lws_jwe_encrypt(&jwe, lws_concat_temp(temp, temp_len), in main()
[all …]
/third_party/libwebsockets/lib/jose/jwe/
Djwe-ecdh-es-aeskw.c199 lws_jwe_encrypt_ecdh(struct lws_jwe *jwe, char *temp, int *temp_len, in lws_jwe_encrypt_ecdh() argument
204 int m, n, ret = -1, ot = *temp_len, ss_len = sizeof(shared_secret), in lws_jwe_encrypt_ecdh()
340 m = n = lws_snprintf(temp, (size_t)*temp_len, in lws_jwe_encrypt_ecdh()
343 *temp_len -= n; in lws_jwe_encrypt_ecdh()
345 n = lws_jwk_export(ephem, 0, temp + (ot - *temp_len), temp_len); in lws_jwe_encrypt_ecdh()
352 n = lws_snprintf(temp + (ot - *temp_len), (size_t)*temp_len, "}"); in lws_jwe_encrypt_ecdh()
353 *temp_len -= n + 1; in lws_jwe_encrypt_ecdh()
360 temp + (ot - *temp_len), temp_len, in lws_jwe_encrypt_ecdh()
378 lws_jwe_encrypt_ecdh_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len) in lws_jwe_encrypt_ecdh_cbc_hs() argument
384 int n, ot = *temp_len, ret = -1; in lws_jwe_encrypt_ecdh_cbc_hs()
[all …]
Djwe-rsa-aescbc.c47 char *temp, int *temp_len) in lws_jwe_encrypt_rsa_aes_cbc_hs() argument
50 ot = *temp_len; in lws_jwe_encrypt_rsa_aes_cbc_hs()
67 temp, temp_len, in lws_jwe_encrypt_rsa_aes_cbc_hs()
72 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_ATAG, temp + (ot - *temp_len), in lws_jwe_encrypt_rsa_aes_cbc_hs()
73 temp_len, (unsigned int)hlen / 2, 0)) in lws_jwe_encrypt_rsa_aes_cbc_hs()
76 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_IV, temp + (ot - *temp_len), in lws_jwe_encrypt_rsa_aes_cbc_hs()
77 temp_len, LWS_JWE_AES_IV_BYTES, 0)) in lws_jwe_encrypt_rsa_aes_cbc_hs()
84 if (lws_jws_dup_element(&jwe->jws.map, LJWE_EKEY, temp + (ot - *temp_len), in lws_jwe_encrypt_rsa_aes_cbc_hs()
85 temp_len, jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_rsa_aes_cbc_hs()
Djwe-rsa-aesgcm.c32 lws_jwe_encrypt_rsa_aes_gcm(struct lws_jwe *jwe, char *temp, int *temp_len) in lws_jwe_encrypt_rsa_aes_gcm() argument
36 int n, ret = -1, ot = *temp_len; in lws_jwe_encrypt_rsa_aes_gcm()
47 temp, temp_len, in lws_jwe_encrypt_rsa_aes_gcm()
52 temp + (ot - *temp_len), in lws_jwe_encrypt_rsa_aes_gcm()
53 temp_len, LWS_AESGCM_TAG, 0)) in lws_jwe_encrypt_rsa_aes_gcm()
59 temp + (ot - *temp_len), temp_len, in lws_jwe_encrypt_rsa_aes_gcm()
79 temp + (ot - *temp_len), temp_len, in lws_jwe_encrypt_rsa_aes_gcm()
Dprivate-lib-jose-jwe.h36 char *temp, int *temp_len);
58 char *temp, int *temp_len);
67 char *temp, int *temp_len);
84 char *temp, int *temp_len);
88 char *temp, int *temp_len);
Djwe.c55 int *temp_len; member
95 if (*args->temp_len < ctx->npos) { in lws_jwe_json_cb()
113 *args->temp_len -= ctx->npos; in lws_jwe_json_cb()
122 (char *)args->temp, *args->temp_len); in lws_jwe_json_cb()
129 *args->temp_len -= n; in lws_jwe_json_cb()
138 char *temp, int *temp_len) in lws_jwe_json_parse() argument
146 args.temp_len = temp_len; in lws_jwe_json_parse()
323 lws_jwe_auth_and_decrypt(struct lws_jwe *jwe, char *temp, int *temp_len) in lws_jwe_auth_and_decrypt() argument
330 temp, temp_len) < 0) { in lws_jwe_auth_and_decrypt()
375 temp, temp_len); in lws_jwe_auth_and_decrypt()
[all …]
/third_party/libwebsockets/lib/jose/jws/
Djws.c60 int *temp_len; member
97 if (*args->temp_len < ctx->npos) { in lws_jws_json_cb()
115 *args->temp_len -= ctx->npos; in lws_jws_json_cb()
124 (char *)args->temp, *args->temp_len); in lws_jws_json_cb()
131 *args->temp_len -= n; in lws_jws_json_cb()
140 char *temp, int *temp_len) in lws_jws_json_parse() argument
148 args.temp_len = temp_len; in lws_jws_json_parse()
192 lws_jws_dup_element(struct lws_jws_map *map, int idx, char *temp, int *temp_len, in lws_jws_dup_element() argument
198 if ((size_t)*temp_len < actual_alloc) in lws_jws_dup_element()
206 *temp_len -= (int)actual_alloc; in lws_jws_dup_element()
[all …]
Djose.c72 int *temp_len; member
349 if (*args->temp_len < ctx->npos) { in lws_jws_jose_cb()
361 *args->temp_len -= ctx->npos; in lws_jws_jose_cb()
376 *args->temp_len += in lws_jws_jose_cb()
409 char *temp, int *temp_len, int is_jwe) in lws_jose_parse() argument
426 args.temp_len = temp_len; in lws_jose_parse()
451 const char *buf, int len, char *temp, int *temp_len) in lws_jws_parse_jose() argument
454 temp, temp_len, 0); in lws_jws_parse_jose()
459 const char *buf, int len, char *temp, int *temp_len) in lws_jwe_parse_jose() argument
462 (const uint8_t *)buf, len, temp, temp_len, 1); in lws_jwe_parse_jose()
/third_party/libwebsockets/include/libwebsockets/
Dlws-jws.h119 char *temp, int *temp_len);
125 char *temp, int *temp_len);
149 char *temp, int *temp_len);
228 char *temp, int *temp_len);
282 char *temp, int *temp_len, const void *in, size_t in_len,
308 int idx, char *temp, int *temp_len, size_t random_len,
332 int *temp_len, size_t len, size_t actual_alloc);
355 char *temp, int *temp_len, const void *in,
Dlws-jwe.h87 char *temp, int *temp_len);
113 lws_jwe_auth_and_decrypt(struct lws_jwe *jwe, char *temp, int *temp_len);
129 lws_jwe_encrypt(struct lws_jwe *jwe, char *temp, int *temp_len);
Dlws-jose.h197 const char *buf, int len, char *temp, int *temp_len);
213 const char *buf, int len, char *temp, int *temp_len);
/third_party/libwebsockets/lib/jose/jwe/enc/
Daeskw.c38 lws_jwe_encrypt_aeskw_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len) in lws_jwe_encrypt_aeskw_cbc_hs() argument
45 ot = *temp_len; in lws_jwe_encrypt_aeskw_cbc_hs()
56 temp, temp_len, in lws_jwe_encrypt_aeskw_cbc_hs()
63 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_ATAG, temp + (ot - *temp_len), in lws_jwe_encrypt_aeskw_cbc_hs()
64 temp_len, (unsigned int)hlen / 2, 0)) in lws_jwe_encrypt_aeskw_cbc_hs()
67 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_IV, temp + (ot - *temp_len), in lws_jwe_encrypt_aeskw_cbc_hs()
68 temp_len, LWS_JWE_AES_IV_BYTES, 0)) in lws_jwe_encrypt_aeskw_cbc_hs()
/third_party/ffmpeg/libavformat/
Drtpproto.c440 socklen_t *source_len, temp_len; in rtp_write() local
459 source_len = &temp_len; in rtp_write()
462 temp_len = s->last_rtp_source_len; in rtp_write()
469 temp_len = s->last_rtcp_source_len; in rtp_write()
/third_party/libwebsockets/lib/core-net/
Ddummy-callback.c33 int temp_len, int index, unsigned char **p, unsigned char *end) in proxy_header() argument
43 if (lws_hdr_copy(par, (char *)temp, temp_len, (enum lws_token_indexes)index) < 0) { in proxy_header()
/third_party/node/src/
Dcares_wrap.cc530 long temp_len; // NOLINT(runtime/int) in ParseSoaReply() local
531 int status = ares_expand_name(ptr, buf, len, &name_temp, &temp_len); in ParseSoaReply()
539 if (ptr + temp_len + NS_QFIXEDSZ > buf + len) { in ParseSoaReply()
542 ptr += temp_len + NS_QFIXEDSZ; in ParseSoaReply()