Searched refs:LJWS_JOSE (Results 1 – 8 of 8) sorted by relevance
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/ |
D | main.c | 63 if (lws_jws_alloc_element(&jws.map, LJWS_JOSE, in main() 70 jws.map.len[LJWS_JOSE] = in main() 71 lws_snprintf((char *)jws.map.buf[LJWS_JOSE], in main() 112 if (lws_jws_encode_b64_element(&jws.map_b64, LJWS_JOSE, in main() 114 &temp_len, jws.map.buf[LJWS_JOSE], in main() 115 jws.map.len[LJWS_JOSE])) in main() 169 lwsl_hexdump_notice(jws.map.buf[LJWS_JOSE], jws.map.len[LJWS_JOSE]); in main() 173 lwsl_hexdump_notice(jws.map_b64.buf[LJWS_JOSE], jws.map_b64.len[LJWS_JOSE]); in main()
|
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/ |
D | jws.c | 57 if (strncmp(none_jose, map.buf[LJWS_JOSE], map.len[LJWS_JOSE])) { in test_jws_none() 63 if (lws_jws_parse_jose(&jose, map.buf[LJWS_JOSE], in test_jws_none() 64 map.len[LJWS_JOSE], in test_jws_none() 432 if (jws.map.len[LJWS_JOSE] != strlen(es256_jose) || in test_jws_ES256() 433 strncmp(es256_jose, jws.map.buf[LJWS_JOSE], in test_jws_ES256() 434 jws.map.len[LJWS_JOSE])) { in test_jws_ES256() 448 if (lws_jws_parse_jose(&jose, jws.map.buf[LJWS_JOSE], in test_jws_ES256() 449 jws.map.len[LJWS_JOSE], 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 …]
|
D | jwe.c | 136 jwe.jws.map.buf[LJWS_JOSE] = temp; in test_jwe_a1() 137 jwe.jws.map.len[LJWS_JOSE] = lws_snprintf(temp, temp_len, in test_jwe_a1() 139 temp_len -= jwe.jws.map.len[LJWS_JOSE]; in test_jwe_a1() 1795 if (lws_jws_dup_element(&jwe.jws.map, LJWS_JOSE, in test_ecdhes_t1() 2043 jwe.jws.map.buf[LJWS_JOSE] = temp; in test_akw_encrypt() 2044 jwe.jws.map.len[LJWS_JOSE] = lws_snprintf(temp, temp_len, in test_akw_encrypt() 2046 temp_len -= jwe.jws.map.len[LJWS_JOSE]; in test_akw_encrypt()
|
/external/libwebsockets/lib/jose/jwe/ |
D | jwe.c | 72 m = LJWS_JOSE; in lws_jwe_json_cb() 328 if (lws_jwe_parse_jose(&jwe->jose, jwe->jws.map.buf[LJWS_JOSE], in lws_jwe_auth_and_decrypt() 329 jwe->jws.map.len[LJWS_JOSE], in lws_jwe_auth_and_decrypt() 331 lws_strnncpy(dotstar, jwe->jws.map.buf[LJWS_JOSE], in lws_jwe_auth_and_decrypt() 332 jwe->jws.map.len[LJWS_JOSE], sizeof(dotstar)); in lws_jwe_auth_and_decrypt() 338 lws_strnncpy(dotstar, jwe->jws.map.buf[LJWS_JOSE], in lws_jwe_auth_and_decrypt() 339 jwe->jws.map.len[LJWS_JOSE], sizeof(dotstar)); in lws_jwe_auth_and_decrypt() 397 if (lws_jwe_parse_jose(&jwe->jose, jwe->jws.map.buf[LJWS_JOSE], in lws_jwe_encrypt() 398 jwe->jws.map.len[LJWS_JOSE], temp, temp_len) < 0) { in lws_jwe_encrypt() 491 n = lws_jws_base64_enc(jwe->jws.map.buf[LJWS_JOSE], in lws_jwe_render_compact() [all …]
|
/external/libwebsockets/lib/jose/jws/ |
D | jws.c | 77 m = LJWS_JOSE; in lws_jws_json_cb() 464 if (lws_jws_parse_jose(&jose, map->buf[LJWS_JOSE], map->len[LJWS_JOSE], in lws_jws_sig_confirm() 509 if (lws_genhash_update(&hash_ctx, map_b64->buf[LJWS_JOSE], in lws_jws_sig_confirm() 510 map_b64->len[LJWS_JOSE]) || in lws_jws_sig_confirm() 561 if (lws_genhmac_update(&ctx, map_b64->buf[LJWS_JOSE], in lws_jws_sig_confirm() 562 map_b64->len[LJWS_JOSE]) || in lws_jws_sig_confirm() 621 lws_genhash_update(&hash_ctx, map_b64->buf[LJWS_JOSE], in lws_jws_sig_confirm() 622 map_b64->len[LJWS_JOSE]) || in lws_jws_sig_confirm() 757 lws_genhash_update(&hash_ctx, jws->map_b64.buf[LJWS_JOSE], in lws_jws_sign_from_b64() 758 jws->map_b64.len[LJWS_JOSE]) || in lws_jws_sign_from_b64() [all …]
|
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/ |
D | main.c | 135 if (lws_jws_alloc_element(&jwe.jws.map, LJWS_JOSE, in main() 143 jwe.jws.map.len[LJWS_JOSE] = lws_snprintf( in main() 144 (char *)jwe.jws.map.buf[LJWS_JOSE], temp_len, in main()
|
/external/libwebsockets/include/libwebsockets/ |
D | lws-jws.h | 45 LJWS_JOSE, enumerator
|
/external/libwebsockets/plugins/acme-client/ |
D | protocol_lws_acme_client.c | 266 jws.map_b64.buf[LJWS_JOSE] = p1; in jws_create_packet() 272 jws.map_b64.len[LJWS_JOSE] = n; in jws_create_packet()
|