Searched refs:LJWS_JOSE (Results 1 – 8 of 8) sorted by relevance
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/ |
D | main.c | 65 if (lws_jws_alloc_element(&jws.map, LJWS_JOSE, in main() 72 jws.map.len[LJWS_JOSE] = (uint32_t) in main() 73 lws_snprintf((char *)jws.map.buf[LJWS_JOSE], in main() 114 if (lws_jws_encode_b64_element(&jws.map_b64, LJWS_JOSE, in main() 116 &temp_len, jws.map.buf[LJWS_JOSE], in main() 117 jws.map.len[LJWS_JOSE])) in main() 175 lwsl_hexdump_notice(jws.map.buf[LJWS_JOSE], jws.map.len[LJWS_JOSE]); in main() 179 lwsl_hexdump_notice(jws.map_b64.buf[LJWS_JOSE], jws.map_b64.len[LJWS_JOSE]); in main()
|
/third_party/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 (int)map.len[LJWS_JOSE], in test_jws_none() 433 if (jws.map.len[LJWS_JOSE] != strlen(es256_jose) || in test_jws_ES256() 434 strncmp(es256_jose, jws.map.buf[LJWS_JOSE], in test_jws_ES256() 435 jws.map.len[LJWS_JOSE])) { in test_jws_ES256() 449 if (lws_jws_parse_jose(&jose, jws.map.buf[LJWS_JOSE], in test_jws_ES256() 450 (int)jws.map.len[LJWS_JOSE], in test_jws_ES256() 498 lws_genhash_update(&hash_ctx, jws.map_b64.buf[LJWS_JOSE], in test_jws_ES256() 499 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] = (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() 1796 if (lws_jws_dup_element(&jwe.jws.map, LJWS_JOSE, in test_ecdhes_t1() 2044 jwe.jws.map.buf[LJWS_JOSE] = temp; in test_akw_encrypt() 2045 jwe.jws.map.len[LJWS_JOSE] = (uint32_t)lws_snprintf(temp, (unsigned int)temp_len, in test_akw_encrypt() 2047 temp_len -= (int)jwe.jws.map.len[LJWS_JOSE]; in test_akw_encrypt()
|
/third_party/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], (int)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() 758 lws_genhash_update(&hash_ctx, jws->map_b64.buf[LJWS_JOSE], in lws_jws_sign_from_b64() 759 jws->map_b64.len[LJWS_JOSE]) || in lws_jws_sign_from_b64() [all …]
|
/third_party/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 (int)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 (int)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 …]
|
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/ |
D | main.c | 137 if (lws_jws_alloc_element(&jwe.jws.map, LJWS_JOSE, in main() 145 jwe.jws.map.len[LJWS_JOSE] = (uint32_t)lws_snprintf( in main() 146 (char *)jwe.jws.map.buf[LJWS_JOSE], (unsigned int)temp_len, in main()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-jws.h | 45 LJWS_JOSE, enumerator
|
/third_party/libwebsockets/plugins/acme-client/ |
D | protocol_lws_acme_client.c | 273 jws.map_b64.buf[LJWS_JOSE] = p1; in jws_create_packet() 279 jws.map_b64.len[LJWS_JOSE] = (uint32_t)n; in jws_create_packet()
|