Home
last modified time | relevance | path

Searched refs:map_b64 (Results 1 – 12 of 12) sorted by relevance

/external/libwebsockets/lib/jose/jws/
Djws.c108 if (!args->jws->map_b64.buf[m]) { in lws_jws_json_cb()
109 args->jws->map_b64.buf[m] = args->temp; in lws_jws_json_cb()
110 args->jws->map_b64.len[m] = 0; in lws_jws_json_cb()
116 args->jws->map_b64.len[m] += ctx->npos; in lws_jws_json_cb()
122 (const char *)args->jws->map_b64.buf[m], in lws_jws_json_cb()
123 args->jws->map_b64.len[m], in lws_jws_json_cb()
126 … lwsl_err("%s: b64 decode failed: in len %d, m %d\n", __func__, (int)args->jws->map_b64.len[m], m); in lws_jws_json_cb()
325 struct lws_jws_map *map_b64, char *out, in lws_jws_compact_decode() argument
330 if (!map_b64) in lws_jws_compact_decode()
331 map_b64 = map; in lws_jws_compact_decode()
[all …]
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djws.c318 &jws.map_b64) != 3) { in test_jws_RS256()
332 if (lws_jws_b64_compact_map(in, l, &jws.map_b64) != 3) { in test_jws_RS256()
339 (char *)jws.map_b64.buf[LJWS_SIG], in test_jws_RS256()
340 jws.map_b64.len[LJWS_SIG] + 8); in test_jws_RS256()
345 jws.map_b64.len[LJWS_SIG] = n; in test_jws_RS256()
425 &jws.map, &jws.map_b64, in test_jws_ES256()
477 if (lws_jws_sig_confirm(&jws.map_b64, &jws.map, &jwk, context) < 0) { in test_jws_ES256()
492 if (lws_jws_b64_compact_map(p, l, &jws.map_b64) != 3) in test_jws_ES256()
497 lws_genhash_update(&hash_ctx, jws.map_b64.buf[LJWS_JOSE], in test_jws_ES256()
498 jws.map_b64.len[LJWS_JOSE]) || in test_jws_ES256()
[all …]
Djwe.c86 &jwe.jws.map, &jwe.jws.map_b64, temp, in test_jwe_a1()
189 &jwe.jws.map_b64, temp, &temp_len) != 5) { in test_jwe_a1()
303 &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_a2()
567 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_ra_ptext_1024()
696 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a192_ptext()
827 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a256_ptext()
1062 &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a128_jwe_openssl()
1153 &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a128_jwe_mbedtls()
1244 &jwe.jws.map, &jwe.jws.map_b64, temp, in test_jwe_a3()
1877 &jwe.jws.map_b64, temp, &temp_len) != 5) { in test_ecdhes_t1()
[all …]
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/
Dmain.c104 if (lws_jws_encode_b64_element(&jws.map_b64, LJWS_PYLD, in main()
112 if (lws_jws_encode_b64_element(&jws.map_b64, LJWS_JOSE, in main()
120 if (lws_jws_alloc_element(&jws.map_b64, LJWS_SIG, in main()
133 (char *)jws.map_b64.buf[LJWS_SIG], in main()
134 jws.map_b64.len[LJWS_SIG]); in main()
140 jws.map_b64.len[LJWS_SIG] = n; in main()
173 lwsl_hexdump_notice(jws.map_b64.buf[LJWS_JOSE], jws.map_b64.len[LJWS_JOSE]); in main()
174 lwsl_hexdump_notice(jws.map_b64.buf[LJWS_PYLD], jws.map_b64.len[LJWS_PYLD]); in main()
175 lwsl_hexdump_notice(jws.map_b64.buf[LJWS_SIG], jws.map_b64.len[LJWS_SIG]); in main()
/external/libwebsockets/lib/jose/jwe/
Djwe.c106 if (!args->jws->map_b64.buf[m]) { in lws_jwe_json_cb()
107 args->jws->map_b64.buf[m] = args->temp; in lws_jwe_json_cb()
108 args->jws->map_b64.len[m] = 0; in lws_jwe_json_cb()
114 args->jws->map_b64.len[m] += ctx->npos; in lws_jwe_json_cb()
120 (const char *)args->jws->map_b64.buf[m], in lws_jwe_json_cb()
121 args->jws->map_b64.len[m], in lws_jwe_json_cb()
601 jws.map_b64.buf[LJWS_JOSE] = p1; in lws_jwe_create_packet()
607 jws.map_b64.len[LJWS_JOSE] = n; in lws_jwe_create_packet()
611 jws.map_b64.buf[LJWS_PYLD] = p1; in lws_jwe_create_packet()
617 jws.map_b64.len[LJWS_PYLD] = n; in lws_jwe_create_packet()
[all …]
Djwe-rsa-aescbc.c65 if (lws_jws_encode_b64_element(&jwe->jws.map_b64, LJWE_JOSE, in lws_jwe_encrypt_rsa_aes_cbc_hs()
92 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_encrypt_rsa_aes_cbc_hs()
93 jwe->jws.map_b64.len[LJWE_JOSE]); in lws_jwe_encrypt_rsa_aes_cbc_hs()
173 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
174 jwe->jws.map_b64.len[LJWE_JOSE]); in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
Djwe-rsa-aesgcm.c58 if (lws_jws_encode_b64_element(&jwe->jws.map_b64, LJWE_JOSE, in lws_jwe_encrypt_rsa_aes_gcm()
86 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_encrypt_rsa_aes_gcm()
87 jwe->jws.map_b64.len[LJWE_JOSE]); in lws_jwe_encrypt_rsa_aes_gcm()
165 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
166 jwe->jws.map_b64.len[LJWE_JOSE]); in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
Djwe-ecdh-es-aeskw.c359 if (lws_jws_encode_b64_element(&jwe->jws.map_b64, LJWE_JOSE, in lws_jwe_encrypt_ecdh()
421 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_encrypt_ecdh_cbc_hs()
422 jwe->jws.map_b64.len[LJWE_JOSE]); in lws_jwe_encrypt_ecdh_cbc_hs()
585 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_auth_and_decrypt_ecdh()
586 jwe->jws.map_b64.len[LJWE_JOSE]) < 0) { in lws_jwe_auth_and_decrypt_ecdh()
609 if (lws_jws_encode_b64_element(&jwe->jws.map_b64, LJWE_JOSE, in lws_jwe_auth_and_decrypt_ecdh_cbc_hs()
/external/libwebsockets/include/libwebsockets/
Dlws-jws.h71 struct lws_jws_map map, map_b64; member
122 lws_jws_sig_confirm_compact_b64_map(struct lws_jws_map *map_b64,
169 lws_jws_sig_confirm(struct lws_jws_map *map_b64, /* b64-encoded */
215 struct lws_jws_map *map_b64, char *out, int *out_len);
218 lws_jws_compact_encode(struct lws_jws_map *map_b64, /* b64-encoded */
/external/libwebsockets/lib/jose/jwe/enc/
Daeskw.c55 if (lws_jws_encode_b64_element(&jwe->jws.map_b64, LJWE_JOSE, in lws_jwe_encrypt_aeskw_cbc_hs()
76 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_encrypt_aeskw_cbc_hs()
77 jwe->jws.map_b64.len[LJWE_JOSE]); in lws_jwe_encrypt_aeskw_cbc_hs()
166 (uint8_t *)jwe->jws.map_b64.buf[LJWE_JOSE], in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
167 jwe->jws.map_b64.len[LJWE_JOSE]); in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
/external/libwebsockets/plugins/acme-client/
Dprotocol_lws_acme_client.c266 jws.map_b64.buf[LJWS_JOSE] = p1; in jws_create_packet()
272 jws.map_b64.len[LJWS_JOSE] = n; in jws_create_packet()
276 jws.map_b64.buf[LJWS_PYLD] = p1; in jws_create_packet()
282 jws.map_b64.len[LJWS_PYLD] = n; in jws_create_packet()
297 jws.map_b64.buf[LJWS_SIG] = p1; in jws_create_packet()
298 jws.map_b64.len[LJWS_SIG] = n; in jws_create_packet()
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/
Dmain.c241 &jwe.jws.map_b64, in main()