Searched refs:ekbytes (Results 1 – 2 of 2) sorted by relevance
/third_party/libwebsockets/lib/jose/jwe/ |
D | jwe-rsa-aesgcm.c | 34 int ekbytes = jwe->jose.enc_alg->keybits_fixed / 8; in lws_jwe_encrypt_rsa_aes_gcm() local 70 if (lws_get_random(jwe->jws.context, jwe->cek, (unsigned int)ekbytes) != in lws_jwe_encrypt_rsa_aes_gcm() 71 (size_t)ekbytes) { in lws_jwe_encrypt_rsa_aes_gcm() 80 jwe->cek, (unsigned int)ekbytes, 0)) in lws_jwe_encrypt_rsa_aes_gcm() 105 n = lws_genrsa_public_encrypt(&rsactx, jwe->cek, (unsigned int)ekbytes, in lws_jwe_encrypt_rsa_aes_gcm()
|
D | jwe-ecdh-es-aeskw.c | 207 ekbytes = 32; //jwe->jose.alg->keybits_fixed / 8; in lws_jwe_encrypt_ecdh() local 371 lws_explicit_bzero(shared_secret, (unsigned int)ekbytes); in lws_jwe_encrypt_ecdh() 372 lws_explicit_bzero(derived, (unsigned int)ekbytes); in lws_jwe_encrypt_ecdh() 383 int ekbytes = jwe->jose.alg->keybits_fixed / 8; in lws_jwe_encrypt_ecdh_cbc_hs() local 439 lws_explicit_bzero(cek, (unsigned int)ekbytes); in lws_jwe_encrypt_ecdh_cbc_hs() 457 int ekbytes = jwe->jose.enc_alg->keybits_fixed / 8, in lws_jwe_auth_and_decrypt_ecdh() local 596 lws_explicit_bzero(derived, (unsigned int)ekbytes); in lws_jwe_auth_and_decrypt_ecdh() 598 lws_explicit_bzero(shared_secret, (unsigned int)ekbytes); in lws_jwe_auth_and_decrypt_ecdh()
|