Searched refs:LJWE_EKEY (Results 1 – 8 of 8) sorted by relevance
/third_party/libwebsockets/lib/jose/jwe/ |
D | jwe-rsa-aescbc.c | 84 if (lws_jws_dup_element(&jwe->jws.map, LJWE_EKEY, temp + (ot - *temp_len), in lws_jwe_encrypt_rsa_aes_cbc_hs() 85 temp_len, jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_rsa_aes_cbc_hs() 86 jwe->jws.map.len[LJWE_EKEY], in lws_jwe_encrypt_rsa_aes_cbc_hs() 92 n = lws_jwe_encrypt_cbc_hs(jwe, (uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_rsa_aes_cbc_hs() 112 memcpy(ekey, jwe->jws.map.buf[LJWE_EKEY], (unsigned int)hlen); in lws_jwe_encrypt_rsa_aes_cbc_hs() 115 (uint8_t *)jwe->jws.map.buf[LJWE_EKEY]); in lws_jwe_encrypt_rsa_aes_cbc_hs() 122 jwe->jws.map.len[LJWE_EKEY] = (unsigned int)n; /* update to encrypted EKEY size */ in lws_jwe_encrypt_rsa_aes_cbc_hs() 145 if (jwe->jws.map.len[LJWE_EKEY] < 40) { in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs() 147 jwe->jws.map.len[LJWE_EKEY]); in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs() 164 (uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs() [all …]
|
D | jwe-rsa-aesgcm.c | 78 if (lws_jws_dup_element(&jwe->jws.map, LJWE_EKEY, in lws_jwe_encrypt_rsa_aes_gcm() 85 n = lws_jwe_encrypt_gcm(jwe, (uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_rsa_aes_gcm() 106 (uint8_t *)jwe->jws.map.buf[LJWE_EKEY]); in lws_jwe_encrypt_rsa_aes_gcm() 114 jwe->jws.map.len[LJWE_EKEY] = (unsigned int)n; in lws_jwe_encrypt_rsa_aes_gcm() 136 if (jwe->jws.map.len[LJWE_EKEY] < 32) { in lws_jwe_auth_and_decrypt_rsa_aes_gcm() 138 jwe->jws.map.len[LJWE_EKEY]); in lws_jwe_auth_and_decrypt_rsa_aes_gcm() 155 (uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_auth_and_decrypt_rsa_aes_gcm() 156 jwe->jws.map.len[LJWE_EKEY], enc_cek, in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
|
D | jwe-ecdh-es-aeskw.c | 317 (void *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_ecdh() 329 jwe->jws.map.len[LJWE_EKEY] = (unsigned int)enc_hlen + 8; in lws_jwe_encrypt_ecdh() 389 if (lws_jws_alloc_element(&jwe->jws.map, LJWE_EKEY, in lws_jwe_encrypt_ecdh_cbc_hs() 433 if (jwe->jws.map.len[LJWE_EKEY]) in lws_jwe_encrypt_ecdh_cbc_hs() 434 lws_explicit_bzero((void *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_ecdh_cbc_hs() 435 jwe->jws.map.len[LJWE_EKEY]); in lws_jwe_encrypt_ecdh_cbc_hs() 436 jwe->jws.map.len[LJWE_EKEY] = 0; in lws_jwe_encrypt_ecdh_cbc_hs() 545 if (jwe->jws.map.len[LJWE_EKEY] < (unsigned int)enc_hlen) { in lws_jwe_auth_and_decrypt_ecdh() 566 (const uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_auth_and_decrypt_ecdh() 567 jwe->jws.map.len[LJWE_EKEY], in lws_jwe_auth_and_decrypt_ecdh()
|
D | jwe.c | 84 m = LJWE_EKEY; in lws_jwe_json_cb() 502 n = lws_jws_base64_enc(jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_render_compact() 503 jwe->jws.map.len[LJWE_EKEY], out, out_len); in lws_jwe_render_compact() 664 LJWE_EKEY, LJWE_AAD, LJWE_IV, LJWE_CTXT, LJWE_ATAG
|
/third_party/libwebsockets/lib/jose/jwe/enc/ |
D | aeskw.c | 75 n = lws_jwe_encrypt_cbc_hs(jwe, (uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_aeskw_cbc_hs() 95 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_encrypt_aeskw_cbc_hs() 96 jwe->jws.map.len[LJWE_EKEY], enc_cek, NULL, NULL, NULL, in lws_jwe_encrypt_aeskw_cbc_hs() 109 jwe->jws.map.len[LJWE_EKEY] += LWS_JWE_RFC3394_OVERHEAD_BYTES; in lws_jwe_encrypt_aeskw_cbc_hs() 110 memcpy((uint8_t *)jwe->jws.map.buf[LJWE_EKEY], enc_cek, in lws_jwe_encrypt_aeskw_cbc_hs() 111 jwe->jws.map.len[LJWE_EKEY]); in lws_jwe_encrypt_aeskw_cbc_hs() 133 if (jwe->jws.map.len[LJWE_EKEY] > sizeof(enc_cek)) in lws_jwe_auth_and_decrypt_aeskw_cbc_hs() 149 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_EKEY], in lws_jwe_auth_and_decrypt_aeskw_cbc_hs() 150 jwe->jws.map.len[LJWE_EKEY], enc_cek, NULL, NULL, NULL, in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-jose/ |
D | jwe.c | 156 if (lws_jws_randomize_element(context, &jwe.jws.map, LJWE_EKEY, in test_jwe_a1() 521 if (lws_jws_dup_element(&jwe.jws.map, LJWE_EKEY, in test_jwe_ra_ptext_1024() 651 if (lws_jws_dup_element(&jwe.jws.map, LJWE_EKEY, in test_jwe_r256a192_ptext() 783 if (lws_jws_dup_element(&jwe.jws.map, LJWE_EKEY, in test_jwe_r256a256_ptext() 2066 if (lws_jws_randomize_element(context, &jwe.jws.map, LJWE_EKEY, in test_akw_encrypt()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-jws.h | 52 LJWE_EKEY, enumerator
|
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/ |
D | main.c | 190 if (lws_jws_randomize_element(context, &jwe.jws.map, LJWE_EKEY, in main()
|