Home
last modified time | relevance | path

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

/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/
H A 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/
H A 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_le in lws_jwe_encrypt_ecdh()
378 lws_jwe_encrypt_ecdh_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len) lws_jwe_encrypt_ecdh_cbc_hs() argument
604 lws_jwe_auth_and_decrypt_ecdh_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len) lws_jwe_auth_and_decrypt_ecdh_cbc_hs() argument
[all...]
H A Djwe-rsa-aescbc.c47 char *temp, int *temp_len) in lws_jwe_encrypt_rsa_aes_cbc_hs()
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()
46 lws_jwe_encrypt_rsa_aes_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len) lws_jwe_encrypt_rsa_aes_cbc_hs() argument
H A 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()
H A 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);
H A 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()
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) < in lws_jwe_auth_and_decrypt()
137 lws_jwe_json_parse(struct lws_jwe *jwe, const uint8_t *buf, int len, char *temp, int *temp_len) lws_jwe_json_parse() argument
384 lws_jwe_encrypt(struct lws_jwe *jwe, char *temp, int *temp_len) lws_jwe_encrypt() argument
[all...]
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/
H A 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/api-tests/api-test-jose/
H A 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) < in test_jws_RS256()
418 int ret = -1, l, n, temp_len = sizeof(temp); test_jws_ES256() local
580 int ret = -1, l, n, temp_len = sizeof(temp); test_jws_ES512() local
[all...]
H A 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()
290 int n, ret = -1, temp_len = sizeof(temp); test_jwe_a2() local
497 int n, ret = -1, temp_len = sizeof(temp); test_jwe_ra_ptext_1024() local
624 int n, ret = -1, temp_len = sizeof(temp); test_jwe_r256a192_ptext() local
756 int n, ret = -1, temp_len = sizeof(temp); test_jwe_r256a256_ptext() local
1050 int n, ret = -1, temp_len = sizeof(temp); test_jwe_r256a128_jwe_openssl() local
1141 int n, ret = -1, temp_len = sizeof(temp); test_jwe_r256a128_jwe_mbedtls() local
1232 int n, ret = -1, temp_len = sizeof(temp); test_jwe_a3() local
1640 int ret = -1, temp_len = sizeof(temp); test_jwa_c() local
1789 int n, ret = -1, temp_len = sizeof(temp); test_ecdhes_t1() local
1969 int n, ret = -1, temp_len = sizeof(temp); test_akw_decrypt() local
2024 int ret = -1, n, temp_len = sizeof(temp); test_akw_encrypt() local
2141 int ret = -1, temp_len = sizeof(temp); test_jwe_json_complete() local
[all...]
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-jws.h108 * \param temp_len: length of scratchpad
119 char *temp, int *temp_len);
125 char *temp, int *temp_len);
136 * \param temp_len: size of scratchpad
149 char *temp, int *temp_len);
228 char *temp, int *temp_len);
266 * \param temp_len: available space at temp
271 * Copies in_len from in to temp, if temp_len is sufficient.
273 * Returns 0 or -1 if not enough space in temp / temp_len.
278 * *temp_len i
[all...]
H A Dlws-jwe.h87 char *temp, int *temp_len);
113 lws_jwe_auth_and_decrypt(struct lws_jwe *jwe, char *temp, int *temp_len);
121 * \param temp_len: amount of space available in temp
129 lws_jwe_encrypt(struct lws_jwe *jwe, char *temp, int *temp_len);
H A Dlws-jose.h190 * \param temp_len: amount of space available in temp
193 * *\p temp_len is updated to reflect the amount of \p temp used if successful.
197 const char *buf, int len, char *temp, int *temp_len);
206 * \param temp_len: amount of space available in temp
209 * *\p temp_len is updated to reflect the amount of \p temp used if successful.
213 const char *buf, int len, char *temp, int *temp_len);
/third_party/libwebsockets/lib/jose/jwe/enc/
H A 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/libwebsockets/lib/jose/jws/
H A 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()
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_allo in lws_jws_dup_element()
139 lws_jws_json_parse(struct lws_jws *jws, const uint8_t *buf, int len, char *temp, int *temp_len) lws_jws_json_parse() argument
212 lws_jws_encode_b64_element(struct lws_jws_map *map, int idx, char *temp, int *temp_len, const void *in, size_t in_len) lws_jws_encode_b64_element() argument
234 lws_jws_randomize_element(struct lws_context *context, struct lws_jws_map *map, int idx, char *temp, int *temp_len, size_t random_len, size_t actual_alloc) lws_jws_randomize_element() argument
258 lws_jws_alloc_element(struct lws_jws_map *map, int idx, char *temp, int *temp_len, size_t len, size_t actual_alloc) lws_jws_alloc_element() argument
450 int n, h_len, b = 3, temp_len = sizeof(temp); lws_jws_sig_confirm() local
670 lws_jws_sig_confirm_compact_b64_map(struct lws_jws_map *map_b64, struct lws_jwk *jwk, struct lws_context *context, char *temp, int *temp_len) lws_jws_sig_confirm_compact_b64_map() argument
691 lws_jws_sig_confirm_compact_b64(const char *in, size_t len, struct lws_jws_map *map, struct lws_jwk *jwk, struct lws_context *context, char *temp, int *temp_len) lws_jws_sig_confirm_compact_b64() argument
712 lws_jws_sig_confirm_compact(struct lws_jws_map *map, struct lws_jwk *jwk, struct lws_context *context, char *temp, int *temp_len) lws_jws_sig_confirm_compact() argument
725 lws_jws_sig_confirm_json(const char *in, size_t len, struct lws_jws *jws, struct lws_jwk *jwk, struct lws_context *context, char *temp, int *temp_len) lws_jws_sig_confirm_json() argument
[all...]
H A 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()
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()
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()
408 lws_jose_parse(struct lws_jose *jose, const uint8_t *buf, int n, char *temp, int *temp_len, int is_jwe) lws_jose_parse() argument
450 lws_jws_parse_jose(struct lws_jose *jose, const char *buf, int len, char *temp, int *temp_len) lws_jws_parse_jose() argument
458 lws_jwe_parse_jose(struct lws_jose *jose, const char *buf, int len, char *temp, int *temp_len) lws_jwe_parse_jose() argument
[all...]
/third_party/ffmpeg/libavformat/
H A Drtpproto.c451 socklen_t *source_len, temp_len; in rtp_write() local
470 source_len = &temp_len; in rtp_write()
473 temp_len = s->last_rtp_source_len; in rtp_write()
480 temp_len = s->last_rtcp_source_len; in rtp_write()
/third_party/libwebsockets/lib/core-net/
H A Ddummy-callback.c33 int temp_len, int index, unsigned char **p, unsigned char *end) in proxy_header()
43 if (lws_hdr_copy(par, (char *)temp, temp_len, (enum lws_token_indexes)index) < 0) { in proxy_header()
32 proxy_header(struct lws *wsi, struct lws *par, unsigned char *temp, int temp_len, int index, unsigned char **p, unsigned char *end) proxy_header() argument
/third_party/node/src/
H A Dcares_wrap.cc531 long temp_len; // NOLINT(runtime/int) in ParseSoaReply() local
532 int status = ares_expand_name(ptr, buf, len, &name_temp, &temp_len); in ParseSoaReply()
540 if (ptr + temp_len + NS_QFIXEDSZ > buf + len) { in ParseSoaReply()
543 ptr += temp_len + NS_QFIXEDSZ; in ParseSoaReply()

Completed in 13 milliseconds