Home
last modified time | relevance | path

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

/external/libwebsockets/lib/jose/jwe/enc/
Daesgcm.c64 if (jwe->jws.map.len[LJWE_ATAG] != LWS_AESGCM_TAG) { in lws_jwe_encrypt_gcm()
66 __func__, jwe->jws.map.len[LJWE_ATAG]); in lws_jwe_encrypt_gcm()
91 (uint8_t *)jwe->jws.map.buf[LJWE_ATAG], &ivs, in lws_jwe_encrypt_gcm()
106 n |= lws_genaes_destroy(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_ATAG], in lws_jwe_encrypt_gcm()
129 if (jwe->jws.map.len[LJWE_ATAG] != LWS_AESGCM_TAG) { in lws_jwe_auth_and_decrypt_gcm()
131 __func__, jwe->jws.map.len[LJWE_ATAG]); in lws_jwe_auth_and_decrypt_gcm()
155 (uint8_t *)jwe->jws.map.buf[LJWE_ATAG], &ivs, 16); in lws_jwe_auth_and_decrypt_gcm()
164 (uint8_t *)jwe->jws.map.buf[LJWE_ATAG], &ivs, 16); in lws_jwe_auth_and_decrypt_gcm()
Daescbc.c42 if (jwe->jws.map.len[LJWE_ATAG] != (unsigned int)hlen / 2) { in lws_jwe_encrypt_cbc_hs()
44 hlen / 2, jwe->jws.map.len[LJWE_ATAG]); in lws_jwe_encrypt_cbc_hs()
156 memcpy((void *)jwe->jws.map.buf[LJWE_ATAG], digest, hlen / 2); in lws_jwe_encrypt_cbc_hs()
174 if (jwe->jws.map.len[LJWE_ATAG] != (unsigned int)hlen / 2) { in lws_jwe_auth_and_decrypt_cbc_hs()
176 hlen / 2, jwe->jws.map.len[LJWE_ATAG]); in lws_jwe_auth_and_decrypt_cbc_hs()
227 if (lws_timingsafe_bcmp(digest, jwe->jws.map.buf[LJWE_ATAG], hlen / 2)) { in lws_jwe_auth_and_decrypt_cbc_hs()
229 __func__, hlen / 2, jwe->jws.map.len[LJWE_ATAG]); in lws_jwe_auth_and_decrypt_cbc_hs()
230 lwsl_hexdump_notice(jwe->jws.map.buf[LJWE_ATAG], hlen / 2); in lws_jwe_auth_and_decrypt_cbc_hs()
Daeskw.c63 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_ATAG, temp + (ot - *temp_len), in lws_jwe_encrypt_aeskw_cbc_hs()
/external/libwebsockets/lib/jose/jwe/
Djwe.c81 m = LJWE_ATAG; in lws_jwe_json_cb()
533 n = lws_jws_base64_enc(jwe->jws.map.buf[LJWE_ATAG], in lws_jwe_render_compact()
534 jwe->jws.map.len[LJWE_ATAG], out, out_len); in lws_jwe_render_compact()
664 LJWE_EKEY, LJWE_AAD, LJWE_IV, LJWE_CTXT, LJWE_ATAG
Djwe-rsa-aescbc.c71 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_ATAG, temp + (ot - *temp_len), in lws_jwe_encrypt_rsa_aes_cbc_hs()
Djwe-rsa-aesgcm.c51 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_ATAG, in lws_jwe_encrypt_rsa_aes_gcm()
Djwe-ecdh-es-aeskw.c407 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_ATAG, in lws_jwe_encrypt_ecdh_cbc_hs()
/external/libwebsockets/include/libwebsockets/
Dlws-jws.h55 LJWE_ATAG, enumerator
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djwe.c1387 jwe.jws.map.buf[LJWE_ATAG] = (char *)jwa_b2_tag; in test_jwa_b2()
1388 jwe.jws.map.len[LJWE_ATAG] = sizeof(jwa_b2_tag); in test_jwa_b2()
1543 jwe.jws.map.buf[LJWE_ATAG] = (char *)jws_b3_tag; in test_jwa_b3()
1544 jwe.jws.map.len[LJWE_ATAG] = sizeof(jws_b3_tag); in test_jwa_b3()