Lines Matching refs:jwe
90 struct lws_jwe jwe; in main() local
111 lws_jwe_init(&jwe, context); in main()
126 if (lws_gencrypto_jwe_alg_to_definition(p, &jwe.jose.alg)) { in main()
130 if (lws_gencrypto_jwe_enc_to_definition(sp + 1, &jwe.jose.enc_alg)) { in main()
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()
166 if (lws_jwk_load(&jwe.jwk, p, NULL, NULL)) { in main()
181 jwe.jws.map.buf[LJWE_CTXT] = in; in main()
182 jwe.jws.map.len[LJWE_CTXT] = (uint32_t)n; in main()
189 n = lws_gencrypto_bits_to_bytes(jwe.jose.enc_alg->keybits_fixed); in main()
190 if (lws_jws_randomize_element(context, &jwe.jws.map, LJWE_EKEY, in main()
200 n = lws_jwe_encrypt(&jwe, lws_concat_temp(temp, temp_len), in main()
208 n = lws_jwe_render_flattened(&jwe, compact, in main()
212 n = lws_jwe_render_compact(&jwe, compact, in main()
234 if (lws_jwe_json_parse(&jwe, (uint8_t *)in, n, in main()
246 if (lws_jws_compact_decode(in, n, &jwe.jws.map, in main()
247 &jwe.jws.map_b64, in main()
261 n = lws_jwe_auth_and_decrypt(&jwe, in main()
272 if (write(1, jwe.jws.map.buf[LJWE_CTXT], in main()
273 jwe.jws.map.len[LJWE_CTXT]) < 0) { in main()
283 lws_jwe_destroy(&jwe); in main()