• Home
  • Raw
  • Download

Lines Matching refs:lec

34 	assert(info->lec);  in lws_cose_sign_create()
110 lws_lec_pctx_t lec, lec1; in lws_cose_sign_payload_chunk() local
160 ret = lws_lec_printf(csc->info.lec, "%t(", in lws_cose_sign_payload_chunk()
183 csc->info.lec->scratch[csc->info.lec->scratch_len++] = c; in lws_cose_sign_payload_chunk()
210 lws_lec_init(&lec, lbuf, sizeof(lbuf)); in lws_cose_sign_payload_chunk()
213 lws_lec_printf(&lec, "{1:%lld}", in lws_cose_sign_payload_chunk()
215 lws_lec_scratch(&lec); in lws_cose_sign_payload_chunk()
220 lec.used); in lws_cose_sign_payload_chunk()
223 lws_cose_sign_hashing(csc, lec.start, lec.used); in lws_cose_sign_payload_chunk()
224 ret = lws_lec_printf(csc->info.lec, "%.*b", in lws_cose_sign_payload_chunk()
225 (int)lec.used, lec.start); in lws_cose_sign_payload_chunk()
234 lws_lec_init(&lec, lbuf, sizeof(lbuf)); in lws_cose_sign_payload_chunk()
235 lws_lec_int(&lec, LWS_CBOR_MAJTYP_BSTR, 0, 0); in lws_cose_sign_payload_chunk()
236 lws_lec_int(csc->info.lec, LWS_CBOR_MAJTYP_BSTR, 0, 0); in lws_cose_sign_payload_chunk()
237 lws_lec_scratch(&lec); in lws_cose_sign_payload_chunk()
238 lec.used = lws_ptr_diff_size_t(lec.buf, lec.start); in lws_cose_sign_payload_chunk()
239 lws_cose_sign_hashing(csc, lec.start, in lws_cose_sign_payload_chunk()
240 lec.used); in lws_cose_sign_payload_chunk()
243 lec.used = 0; in lws_cose_sign_payload_chunk()
265 ret = lws_lec_printf(csc->info.lec, "{%d:%.*b}", in lws_cose_sign_payload_chunk()
282 lws_lec_int(csc->info.lec, LWS_CBOR_MAJTYP_BSTR, 0, 0); in lws_cose_sign_payload_chunk()
294 lws_lec_init(&lec, lbuf, sizeof(lbuf)); in lws_cose_sign_payload_chunk()
297 lws_lec_printf(&lec, "{1:%lld}", in lws_cose_sign_payload_chunk()
302 lec.used); in lws_cose_sign_payload_chunk()
309 if (lws_cose_sign_alg_hash(alg, lec.start, in lws_cose_sign_payload_chunk()
310 lec.used)) in lws_cose_sign_payload_chunk()
322 ret = lws_lec_printf(csc->info.lec, "{}"); in lws_cose_sign_payload_chunk()
333 lws_lec_int(csc->info.lec, LWS_CBOR_MAJTYP_BSTR, 0, in lws_cose_sign_payload_chunk()
342 lws_lec_scratch(csc->info.lec); in lws_cose_sign_payload_chunk()
355 lws_lec_scratch(csc->info.lec); in lws_cose_sign_payload_chunk()
365 s = lws_ptr_diff_size_t(csc->info.lec->end, in lws_cose_sign_payload_chunk()
366 csc->info.lec->buf); in lws_cose_sign_payload_chunk()
372 memcpy(csc->info.lec->buf, in, s); in lws_cose_sign_payload_chunk()
373 csc->info.lec->buf += s; in lws_cose_sign_payload_chunk()
374 csc->info.lec->used = lws_ptr_diff_size_t( in lws_cose_sign_payload_chunk()
375 csc->info.lec->buf, in lws_cose_sign_payload_chunk()
376 csc->info.lec->start); in lws_cose_sign_payload_chunk()
393 lws_lec_int(csc->info.lec, LWS_CBOR_MAJTYP_ARRAY, 0, in lws_cose_sign_payload_chunk()
413 ret = lws_lec_printf(csc->info.lec, "%.*b", in lws_cose_sign_payload_chunk()
424 lws_lec_int(csc->info.lec, LWS_CBOR_MAJTYP_ARRAY, 0, in lws_cose_sign_payload_chunk()
446 lws_lec_int(csc->info.lec, LWS_CBOR_MAJTYP_ARRAY, 0, 3); in lws_cose_sign_payload_chunk()
448 lws_lec_init(&lec, lbuf, sizeof(lbuf)); in lws_cose_sign_payload_chunk()
451 lws_lec_printf(&lec, "{1:%lld}", in lws_cose_sign_payload_chunk()
456 lec.used); in lws_cose_sign_payload_chunk()
457 lws_lec_printf(csc->info.lec, "{1:%lld}", in lws_cose_sign_payload_chunk()
461 lec.used = 0; in lws_cose_sign_payload_chunk()
478 ret = lws_lec_printf(csc->info.lec, "{%d:%.*b}", in lws_cose_sign_payload_chunk()
487 ret = lws_lec_printf(csc->info.lec, "{}"); in lws_cose_sign_payload_chunk()
502 ret = lws_lec_printf(csc->info.lec, "%.*b", in lws_cose_sign_payload_chunk()