Home
last modified time | relevance | path

Searched refs:aesctx (Results 1 – 4 of 4) sorted by relevance

/third_party/libwebsockets/lib/jose/jwe/enc/
Daesgcm.c57 struct lws_genaes_ctx aesctx; in lws_jwe_encrypt_gcm() local
80 if (lws_genaes_create(&aesctx, LWS_GAESO_ENC, LWS_GAESM_GCM, in lws_jwe_encrypt_gcm()
89 n = lws_genaes_crypt(&aesctx, aad, (unsigned int)aad_len, NULL, in lws_jwe_encrypt_gcm()
99 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_gcm()
106 n |= lws_genaes_destroy(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_ATAG], in lws_jwe_encrypt_gcm()
121 struct lws_genaes_ctx aesctx; in lws_jwe_auth_and_decrypt_gcm() local
145 if (lws_genaes_create(&aesctx, LWS_GAESO_DEC, LWS_GAESM_GCM, in lws_jwe_auth_and_decrypt_gcm()
152 n = lws_genaes_crypt(&aesctx, aad, (unsigned int)aad_len, in lws_jwe_auth_and_decrypt_gcm()
160 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_auth_and_decrypt_gcm()
166 n |= lws_genaes_destroy(&aesctx, tag, sizeof(tag)); in lws_jwe_auth_and_decrypt_gcm()
Daeskw.c40 struct lws_genaes_ctx aesctx; in lws_jwe_encrypt_aeskw_cbc_hs() local
86 if (lws_genaes_create(&aesctx, LWS_GAESO_ENC, LWS_GAESM_KW, 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()
99 m = lws_genaes_destroy(&aesctx, NULL, 0); in lws_jwe_encrypt_aeskw_cbc_hs()
120 struct lws_genaes_ctx aesctx; in lws_jwe_auth_and_decrypt_aeskw_cbc_hs() local
138 if (lws_genaes_create(&aesctx, LWS_GAESO_DEC, LWS_GAESM_KW, 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()
153 m = lws_genaes_destroy(&aesctx, NULL, 0); in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
Daescbc.c36 struct lws_genaes_ctx aesctx; in lws_jwe_encrypt_cbc_hs() local
84 if (lws_genaes_create(&aesctx, LWS_GAESO_ENC, LWS_GAESM_CBC, &el, in lws_jwe_encrypt_cbc_hs()
96 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], 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()
169 struct lws_genaes_ctx aesctx; in lws_jwe_auth_and_decrypt_cbc_hs() local
239 if (lws_genaes_create(&aesctx, LWS_GAESO_DEC, LWS_GAESM_CBC, in lws_jwe_auth_and_decrypt_cbc_hs()
246 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_auth_and_decrypt_cbc_hs()
263 n |= lws_genaes_destroy(&aesctx, NULL, 0); in lws_jwe_auth_and_decrypt_cbc_hs()
/third_party/libwebsockets/lib/jose/jwe/
Djwe-ecdh-es-aeskw.c292 struct lws_genaes_ctx aesctx; in lws_jwe_encrypt_ecdh() local
307 if (lws_genaes_create(&aesctx, LWS_GAESO_ENC, LWS_GAESM_KW, &el, in lws_jwe_encrypt_ecdh()
316 n = lws_genaes_crypt(&aesctx, cek, (unsigned int)enc_hlen, in lws_jwe_encrypt_ecdh()
319 m = lws_genaes_destroy(&aesctx, NULL, 0); in lws_jwe_encrypt_ecdh()
540 struct lws_genaes_ctx aesctx; in lws_jwe_auth_and_decrypt_ecdh() local
556 if (lws_genaes_create(&aesctx, LWS_GAESO_DEC, LWS_GAESM_KW, in lws_jwe_auth_and_decrypt_ecdh()
565 n = lws_genaes_crypt(&aesctx, in lws_jwe_auth_and_decrypt_ecdh()
570 m = lws_genaes_destroy(&aesctx, NULL, 0); in lws_jwe_auth_and_decrypt_ecdh()