Lines Matching refs:alg
50 cose_param_t alg; member
122 lws_cose_alg_to_name(cose_param_t alg) in lws_cose_alg_to_name() argument
127 if (alg_names[n].alg == alg) in lws_cose_alg_to_name()
140 return alg_names[n].alg; in lws_cose_name_to_alg()
192 lws_cose_sig_alg_t *alg; in apply_external() local
195 alg = lws_container_of(cps->algs.head, lws_cose_sig_alg_t, list); in apply_external()
196 if (!alg) in apply_external()
208 if (lws_cose_val_alg_hash(alg, t, s)) in apply_external()
221 lws_cose_val_alg_hash(alg, ex.ext, ex.xl)) in apply_external()
240 lws_cose_sig_alg_t *alg; in create_alg() local
257 alg = lws_cose_val_alg_create(cps->info.cx, ck, cps->st[0].alg, in create_alg()
259 if (!alg) { in create_alg()
279 lws_dll2_add_tail(&alg->list, &cps->algs); in create_alg()
286 if (lws_cose_val_alg_hash(alg, sig_mctx[cps->info.sigtype], in create_alg()
318 if (lws_cose_val_alg_hash(alg, p, s)) in create_alg()
346 if (lws_cose_val_alg_hash(alg, p, s)) in create_alg()
356 if (lws_cose_val_alg_hash(alg, &u, 1)) in create_alg()
375 if (lws_cose_val_alg_hash(alg, cps->payload_stash, cps->payload_pos)) in create_alg()
379 lws_cose_val_alg_destroy(cps, &alg, (const uint8_t *)cps->sig_agg, in create_alg()
450 lws_cose_sig_alg_t *alg; in cb_cose_sig() local
742 sl->alg = ctx->item.u.i64; in cb_cose_sig()
743 if (!cps->st[0].alg) in cb_cose_sig()
744 cps->st[0].alg = sl->alg; in cb_cose_sig()
746 sl->alg = ctx->item.u.i64; in cb_cose_sig()
784 alg = lws_container_of(cps->algs.head, in cb_cose_sig()
786 if (!alg) in cb_cose_sig()
789 if (lws_cose_val_alg_hash(alg, t, s)) { in cb_cose_sig()
827 alg = lws_container_of(cps->algs.head, in cb_cose_sig()
829 if (!alg) in cb_cose_sig()
833 lws_cose_val_alg_hash(alg, (uint8_t *)ctx->buf, in cb_cose_sig()
897 alg = lws_container_of(cps->algs.head, in cb_cose_sig()
899 if (!alg) in cb_cose_sig()
904 lws_cose_val_alg_hash(alg, (uint8_t *)ctx->buf, in cb_cose_sig()
917 alg = lws_container_of(cps->algs.head, in cb_cose_sig()
920 if (alg) in cb_cose_sig()
921 lws_cose_val_alg_destroy(cps, &alg, in cb_cose_sig()
1024 lws_cose_sig_alg_t *alg = lws_container_of(p, in lws_cose_validate_destroy() local
1028 lws_cose_val_alg_destroy(cps, &alg, NULL, 0); in lws_cose_validate_destroy()