Home
last modified time | relevance | path

Searched refs:LJWE_IV (Results 1 – 9 of 9) sorted by relevance

/third_party/libwebsockets/lib/jose/jwe/enc/
Daesgcm.c70 if (jwe->jws.map.len[LJWE_IV] != LWS_AESGCM_IV) { /* MUST be 96-bit */ in lws_jwe_encrypt_gcm()
72 jwe->jws.map.len[LJWE_IV]); in lws_jwe_encrypt_gcm()
90 (uint8_t *)jwe->jws.map.buf[LJWE_IV], in lws_jwe_encrypt_gcm()
102 (uint8_t *)jwe->jws.map.buf[LJWE_IV], in lws_jwe_encrypt_gcm()
135 if (jwe->jws.map.len[LJWE_IV] != LWS_AESGCM_IV) { /* MUST be 96-bit */ in lws_jwe_auth_and_decrypt_gcm()
137 jwe->jws.map.len[LJWE_IV]); in lws_jwe_auth_and_decrypt_gcm()
154 (uint8_t *)jwe->jws.map.buf[LJWE_IV], in lws_jwe_auth_and_decrypt_gcm()
163 (uint8_t *)jwe->jws.map.buf[LJWE_IV], in lws_jwe_auth_and_decrypt_gcm()
Daescbc.c48 if (jwe->jws.map.len[LJWE_IV] != 16) { in lws_jwe_encrypt_cbc_hs()
50 jwe->jws.map.len[LJWE_IV]); in lws_jwe_encrypt_cbc_hs()
72 lws_get_random(jwe->jws.context, (void *)jwe->jws.map.buf[LJWE_IV], 16); in lws_jwe_encrypt_cbc_hs()
99 (uint8_t *)jwe->jws.map.buf[LJWE_IV], in lws_jwe_encrypt_cbc_hs()
138 lws_genhmac_update(&hmacctx, jwe->jws.map.buf[LJWE_IV], in lws_jwe_encrypt_cbc_hs()
180 if (jwe->jws.map.len[LJWE_IV] != 16) { in lws_jwe_auth_and_decrypt_cbc_hs()
182 jwe->jws.map.len[LJWE_IV]); in lws_jwe_auth_and_decrypt_cbc_hs()
210 lws_genhmac_update(&hmacctx, (uint8_t *)jwe->jws.map.buf[LJWE_IV], in lws_jwe_auth_and_decrypt_cbc_hs()
211 jwe->jws.map.len[LJWE_IV]) || in lws_jwe_auth_and_decrypt_cbc_hs()
249 (uint8_t *)jwe->jws.map.buf[LJWE_IV], NULL, NULL, 16); in lws_jwe_auth_and_decrypt_cbc_hs()
Daeskw.c67 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_IV, temp + (ot - *temp_len), in lws_jwe_encrypt_aeskw_cbc_hs()
/third_party/libwebsockets/lib/jose/jwe/
Djwe.c75 m = LJWE_IV; in lws_jwe_json_cb()
512 n = lws_jws_base64_enc(jwe->jws.map.buf[LJWE_IV], in lws_jwe_render_compact()
513 jwe->jws.map.len[LJWE_IV], out, out_len); in lws_jwe_render_compact()
664 LJWE_EKEY, LJWE_AAD, LJWE_IV, LJWE_CTXT, LJWE_ATAG
Djwe-rsa-aesgcm.c46 if (lws_jws_randomize_element(jwe->jws.context, &jwe->jws.map, LJWE_IV, in lws_jwe_encrypt_rsa_aes_gcm()
Djwe-rsa-aescbc.c76 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_IV, temp + (ot - *temp_len), in lws_jwe_encrypt_rsa_aes_cbc_hs()
Djwe-ecdh-es-aeskw.c412 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_IV, in lws_jwe_encrypt_ecdh_cbc_hs()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djwe.c1382 jwe.jws.map.buf[LJWE_IV] = (char *)jwa_b2_iv; in test_jwa_b2()
1383 jwe.jws.map.len[LJWE_IV] = sizeof(jwa_b2_iv); in test_jwa_b2()
1538 jwe.jws.map.buf[LJWE_IV] = (char *)jwa_b3_iv; in test_jwa_b3()
1539 jwe.jws.map.len[LJWE_IV] = sizeof(jwa_b3_iv); in test_jwa_b3()
/third_party/libwebsockets/include/libwebsockets/
Dlws-jws.h53 LJWE_IV, enumerator