• Home
  • Raw
  • Download

Lines Matching refs:alg

55 lws_cose_sign_add(struct lws_cose_sign_context *csc, cose_param_t alg,  in lws_cose_sign_add()  argument
58 lws_cose_sig_alg_t *si = lws_cose_sign_alg_create(csc->info.cx, ck, alg, in lws_cose_sign_add()
88 lws_cose_sig_alg_t *alg = lws_container_of(p, in lws_cose_sign_hashing() local
91 if (lws_cose_sign_alg_hash(alg, in, in_len)) in lws_cose_sign_hashing()
92 alg->failed = 1; in lws_cose_sign_hashing()
111 lws_cose_sig_alg_t *alg; in lws_cose_sign_payload_chunk() local
129 alg = lws_container_of(csc->algs.head, lws_cose_sig_alg_t, list); in lws_cose_sign_payload_chunk()
131 switch (alg->cose_alg) { in lws_cose_sign_payload_chunk()
207 alg = lws_container_of(csc->algs.head, in lws_cose_sign_payload_chunk()
214 (long long)alg->cose_alg); in lws_cose_sign_payload_chunk()
261 alg = lws_container_of(csc->algs.head, in lws_cose_sign_payload_chunk()
263 ke = &alg->cose_key->meta[COSEKEY_META_KID]; in lws_cose_sign_payload_chunk()
292 alg = lws_container_of(p, lws_cose_sig_alg_t, list); in lws_cose_sign_payload_chunk()
298 (long long)alg->cose_alg); in lws_cose_sign_payload_chunk()
306 if (lws_cose_sign_alg_hash(alg, lec1.scratch, in lws_cose_sign_payload_chunk()
308 alg->failed = 1; in lws_cose_sign_payload_chunk()
309 if (lws_cose_sign_alg_hash(alg, lec.start, in lws_cose_sign_payload_chunk()
311 alg->failed = 1; in lws_cose_sign_payload_chunk()
388 csc->alg = lws_container_of(csc->algs.head, in lws_cose_sign_payload_chunk()
405 alg = lws_container_of(lws_dll2_get_head(&csc->algs), in lws_cose_sign_payload_chunk()
408 if (!alg->completed) in lws_cose_sign_payload_chunk()
409 lws_cose_sign_alg_complete(alg); in lws_cose_sign_payload_chunk()
410 if (alg->failed) in lws_cose_sign_payload_chunk()
414 (int)alg->rhash_len, alg->rhash); in lws_cose_sign_payload_chunk()
419 csc->alg = lws_container_of(csc->algs.head, in lws_cose_sign_payload_chunk()
452 (long long)csc->alg->cose_alg); in lws_cose_sign_payload_chunk()
458 (long long)csc->alg->cose_alg); in lws_cose_sign_payload_chunk()
474 alg = lws_container_of(csc->algs.head, in lws_cose_sign_payload_chunk()
476 ke = &alg->cose_key->meta[COSEKEY_META_KID]; in lws_cose_sign_payload_chunk()
493 lws_cose_sign_alg_complete(csc->alg); in lws_cose_sign_payload_chunk()
494 if (csc->alg->failed) in lws_cose_sign_payload_chunk()
503 (int)csc->alg->rhash_len, csc->alg->rhash); in lws_cose_sign_payload_chunk()
507 if (csc->alg->list.next) { in lws_cose_sign_payload_chunk()
508 csc->alg = (lws_cose_sig_alg_t *)csc->alg->list.next; in lws_cose_sign_payload_chunk()
528 lws_cose_sig_alg_t *alg = lws_container_of(p, in lws_cose_sign_destroy() local
532 lws_cose_sign_alg_destroy(&alg); in lws_cose_sign_destroy()