Home
last modified time | relevance | path

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

/external/libwebsockets/lib/jose/jwe/enc/
Daescbc.c96 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_cbc_hs()
97 jwe->jws.map.len[LJWE_CTXT], in lws_jwe_encrypt_cbc_hs()
98 (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_cbc_hs()
102 jwe->jws.map.len[LJWE_CTXT]); in lws_jwe_encrypt_cbc_hs()
103 jwe->jws.map.len[LJWE_CTXT] = paddedlen; in lws_jwe_encrypt_cbc_hs()
104 lws_genaes_destroy(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT] + in lws_jwe_encrypt_cbc_hs()
142 (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_cbc_hs()
143 jwe->jws.map.len[LJWE_CTXT]) || in lws_jwe_encrypt_cbc_hs()
158 return jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_encrypt_cbc_hs()
212 lws_genhmac_update(&hmacctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_auth_and_decrypt_cbc_hs()
[all …]
Daesgcm.c99 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_gcm()
100 jwe->jws.map.len[LJWE_CTXT], in lws_jwe_encrypt_gcm()
101 (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_gcm()
113 return jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_encrypt_gcm()
160 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_auth_and_decrypt_gcm()
161 jwe->jws.map.len[LJWE_CTXT], in lws_jwe_auth_and_decrypt_gcm()
162 (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_auth_and_decrypt_gcm()
172 return jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_auth_and_decrypt_gcm()
Daeskw.c113 return jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_encrypt_aeskw_cbc_hs()
174 return jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djwe.c101 if (jwe.jws.map.len[LJWE_CTXT] < strlen(ex_a1_ptext) || in test_jwe_a1()
102 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ex_a1_ptext, in test_jwe_a1()
106 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_a1()
107 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_a1()
146 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_jwe_a1()
318 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ex_a2_ptext) || in test_jwe_a2()
319 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ex_a2_ptext, in test_jwe_a2()
323 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_a2()
324 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_a2()
510 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_jwe_ra_ptext_1024()
[all …]
/external/libwebsockets/lib/jose/jwe/
Djwe-rsa-aescbc.c185 n = jwe->jws.map.buf[LJWE_CTXT][jwe->jws.map.len[LJWE_CTXT] - 1]; in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
188 (int)jwe->jws.map.len[LJWE_CTXT]); in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
191 jwe->jws.map.len[LJWE_CTXT] -= n; in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
194 return jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
Djwe-rsa-aesgcm.c116 ret = jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_encrypt_rsa_aes_gcm()
176 n = jwe->jws.map.buf[LJWE_CTXT][jwe->jws.map.len[LJWE_CTXT] - 1]; in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
179 jwe->jws.map.len[LJWE_CTXT] -= n; in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
182 return jwe->jws.map.len[LJWE_CTXT]; in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
Djwe.c78 m = LJWE_CTXT; in lws_jwe_json_cb()
523 n = lws_jws_base64_enc(jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_render_compact()
524 jwe->jws.map.len[LJWE_CTXT], out, out_len); in lws_jwe_render_compact()
664 LJWE_EKEY, LJWE_AAD, LJWE_IV, LJWE_CTXT, LJWE_ATAG
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/
Dmain.c179 jwe.jws.map.buf[LJWE_CTXT] = in; in main()
180 jwe.jws.map.len[LJWE_CTXT] = n; in main()
266 if (write(1, jwe.jws.map.buf[LJWE_CTXT], in main()
267 jwe.jws.map.len[LJWE_CTXT]) < 0) { in main()
/external/libwebsockets/include/libwebsockets/
Dlws-jws.h54 LJWE_CTXT, enumerator