Searched refs:ecctx (Results 1 – 1 of 1) sorted by relevance
/external/libwebsockets/lib/jose/jwe/ |
D | jwe-ecdh-es-aeskw.c | 208 struct lws_genec_ctx ecctx; in lws_jwe_encrypt_ecdh() local 222 if (lws_genecdh_create(&ecctx, jwe->jws.context, NULL)) in lws_jwe_encrypt_ecdh() 226 if (lws_genecdh_new_keypair(&ecctx, LDHS_OURS, (const char *) in lws_jwe_encrypt_ecdh() 232 if (lws_genecdh_set_key(&ecctx, jwe->jws.jwk->e, LDHS_THEIRS)) { in lws_jwe_encrypt_ecdh() 239 if (lws_genecdh_compute_shared_secret(&ecctx, shared_secret, &ss_len)) { in lws_jwe_encrypt_ecdh() 368 lws_genec_destroy(&ecctx); in lws_jwe_encrypt_ecdh() 459 struct lws_genec_ctx ecctx; in lws_jwe_auth_and_decrypt_ecdh() local 485 if (lws_genecdh_create(&ecctx, jwe->jws.context, NULL)) in lws_jwe_auth_and_decrypt_ecdh() 490 if (lws_genecdh_set_key(&ecctx, jwe->jws.jwk->e, LDHS_OURS)) { in lws_jwe_auth_and_decrypt_ecdh() 496 if (lws_genecdh_set_key(&ecctx, in lws_jwe_auth_and_decrypt_ecdh() [all …]
|