Lines Matching refs:enc_alg
217 if (!jwe->jose.enc_alg || !jwe->jose.alg) in lws_jwa_concat_kdf()
238 aid = direct ? jwe->jose.enc_alg->alg : jwe->jose.alg->alg; in lws_jwa_concat_kdf()
271 while (ctr <= (uint32_t)((jwe->jose.enc_alg->keybits_fixed + (hlen - 1)) / hlen)) { in lws_jwa_concat_kdf()
298 be32(jwe->jose.enc_alg->keybits_fixed, &t), in lws_jwa_concat_kdf()
345 valid_aescbc_hmac = jwe->jose.enc_alg && in lws_jwe_auth_and_decrypt()
346 jwe->jose.enc_alg->algtype_crypto == LWS_JOSE_ENCTYPE_AES_CBC && in lws_jwe_auth_and_decrypt()
347 (jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA256 || in lws_jwe_auth_and_decrypt()
348 jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA384 || in lws_jwe_auth_and_decrypt()
349 jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA512); in lws_jwe_auth_and_decrypt()
351 valid_aesgcm = jwe->jose.enc_alg && in lws_jwe_auth_and_decrypt()
352 jwe->jose.enc_alg->algtype_crypto == LWS_JOSE_ENCTYPE_AES_GCM; in lws_jwe_auth_and_decrypt()
378 jwe->jose.alg->alg, jwe->jose.enc_alg ? in lws_jwe_auth_and_decrypt()
379 jwe->jose.enc_alg->alg : "NULL"); in lws_jwe_auth_and_decrypt()
394 valid_aesgcm = jwe->jose.enc_alg && in lws_jwe_encrypt()
395 jwe->jose.enc_alg->algtype_crypto == LWS_JOSE_ENCTYPE_AES_GCM; in lws_jwe_encrypt()
405 valid_aescbc_hmac = jwe->jose.enc_alg && in lws_jwe_encrypt()
406 jwe->jose.enc_alg->algtype_crypto == LWS_JOSE_ENCTYPE_AES_CBC && in lws_jwe_encrypt()
407 (jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA256 || in lws_jwe_encrypt()
408 jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA384 || in lws_jwe_encrypt()
409 jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA512); in lws_jwe_encrypt()
442 jwe->jose.alg->alg, jwe->jose.enc_alg ? in lws_jwe_encrypt()
443 jwe->jose.enc_alg->alg : "NULL"); in lws_jwe_encrypt()
747 jwe->jose.alg->alg, jwe->jose.enc_alg->alg); in lws_jwe_render_flattened()