• Home
  • Raw
  • Download

Lines Matching refs:cbb

269     pmbtoken_blind(const PMBTOKEN_METHOD *method, CBB *cbb, size_t count) {  in STACK_OF()
309 if (!cbb_add_prefixed_point(cbb, group, &pretoken->Tp, in STACK_OF()
353 CBB cbb; in hash_c_dleq() local
354 CBB_zero(&cbb); in hash_c_dleq()
357 if (!CBB_init(&cbb, 0) || in hash_c_dleq()
358 !CBB_add_bytes(&cbb, kDLEQ2Label, sizeof(kDLEQ2Label)) || in hash_c_dleq()
359 !point_to_cbb(&cbb, method->group, X) || in hash_c_dleq()
360 !point_to_cbb(&cbb, method->group, T) || in hash_c_dleq()
361 !point_to_cbb(&cbb, method->group, S) || in hash_c_dleq()
362 !point_to_cbb(&cbb, method->group, W) || in hash_c_dleq()
363 !point_to_cbb(&cbb, method->group, K0) || in hash_c_dleq()
364 !point_to_cbb(&cbb, method->group, K1) || in hash_c_dleq()
365 !CBB_finish(&cbb, &buf, &len) || in hash_c_dleq()
374 CBB_cleanup(&cbb); in hash_c_dleq()
388 CBB cbb; in hash_c_dleqor() local
389 CBB_zero(&cbb); in hash_c_dleqor()
392 if (!CBB_init(&cbb, 0) || in hash_c_dleqor()
393 !CBB_add_bytes(&cbb, kDLEQOR2Label, sizeof(kDLEQOR2Label)) || in hash_c_dleqor()
394 !point_to_cbb(&cbb, method->group, X0) || in hash_c_dleqor()
395 !point_to_cbb(&cbb, method->group, X1) || in hash_c_dleqor()
396 !point_to_cbb(&cbb, method->group, T) || in hash_c_dleqor()
397 !point_to_cbb(&cbb, method->group, S) || in hash_c_dleqor()
398 !point_to_cbb(&cbb, method->group, W) || in hash_c_dleqor()
399 !point_to_cbb(&cbb, method->group, K00) || in hash_c_dleqor()
400 !point_to_cbb(&cbb, method->group, K01) || in hash_c_dleqor()
401 !point_to_cbb(&cbb, method->group, K10) || in hash_c_dleqor()
402 !point_to_cbb(&cbb, method->group, K11) || in hash_c_dleqor()
403 !CBB_finish(&cbb, &buf, &len) || in hash_c_dleqor()
412 CBB_cleanup(&cbb); in hash_c_dleqor()
427 CBB cbb; in hash_c_batch() local
428 CBB_zero(&cbb); in hash_c_batch()
431 if (!CBB_init(&cbb, 0) || in hash_c_batch()
432 !CBB_add_bytes(&cbb, kDLEQBatchLabel, sizeof(kDLEQBatchLabel)) || in hash_c_batch()
433 !CBB_add_bytes(&cbb, CBB_data(points), CBB_len(points)) || in hash_c_batch()
434 !CBB_add_u16(&cbb, (uint16_t)index) || in hash_c_batch()
435 !CBB_finish(&cbb, &buf, &len) || in hash_c_batch()
444 CBB_cleanup(&cbb); in hash_c_batch()
453 static int dleq_generate(const PMBTOKEN_METHOD *method, CBB *cbb, in dleq_generate() argument
569 if (!scalar_to_cbb(cbb, group, &cs) || in dleq_generate()
570 !scalar_to_cbb(cbb, group, &us) || in dleq_generate()
571 !scalar_to_cbb(cbb, group, &vs)) { in dleq_generate()
602 if (!scalar_to_cbb(cbb, group, &c0) || in dleq_generate()
603 !scalar_to_cbb(cbb, group, &c1) || in dleq_generate()
604 !scalar_to_cbb(cbb, group, &u0) || in dleq_generate()
605 !scalar_to_cbb(cbb, group, &u1) || in dleq_generate()
606 !scalar_to_cbb(cbb, group, &v0) || in dleq_generate()
607 !scalar_to_cbb(cbb, group, &v1)) { in dleq_generate()
735 const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, in pmbtoken_sign() argument
796 !CBB_add_bytes(cbb, s, TRUST_TOKEN_NONCE_SIZE) || in pmbtoken_sign()
797 !cbb_add_prefixed_point(cbb, group, &affines[1], in pmbtoken_sign()
799 !cbb_add_prefixed_point(cbb, group, &affines[2], in pmbtoken_sign()
816 if (!CBB_flush(cbb)) { in pmbtoken_sign()
847 if (!CBB_add_u16_length_prefixed(cbb, &proof) || in pmbtoken_sign()
850 !CBB_flush(cbb)) { in pmbtoken_sign()
1115 CBB cbb; in pmbtoken_exp1_hash_s() local
1118 if (!CBB_init(&cbb, 0) || in pmbtoken_exp1_hash_s()
1119 !point_to_cbb(&cbb, group, t) || in pmbtoken_exp1_hash_s()
1120 !CBB_add_bytes(&cbb, s, TRUST_TOKEN_NONCE_SIZE) || in pmbtoken_exp1_hash_s()
1121 !CBB_finish(&cbb, &buf, &len) || in pmbtoken_exp1_hash_s()
1132 CBB_cleanup(&cbb); in pmbtoken_exp1_hash_s()
1201 STACK_OF(TRUST_TOKEN_PRETOKEN) * pmbtoken_exp1_blind(CBB *cbb, size_t count) { in STACK_OF()
1205 return pmbtoken_blind(&pmbtoken_exp1_method, cbb, count); in STACK_OF()
1208 int pmbtoken_exp1_sign(const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, in pmbtoken_exp1_sign() argument
1214 return pmbtoken_sign(&pmbtoken_exp1_method, key, cbb, cbs, num_requested, in pmbtoken_exp1_sign()
1265 CBB cbb; in pmbtoken_exp2_hash_s() local
1268 if (!CBB_init(&cbb, 0) || in pmbtoken_exp2_hash_s()
1269 !point_to_cbb(&cbb, group, t) || in pmbtoken_exp2_hash_s()
1270 !CBB_add_bytes(&cbb, s, TRUST_TOKEN_NONCE_SIZE) || in pmbtoken_exp2_hash_s()
1271 !CBB_finish(&cbb, &buf, &len) || in pmbtoken_exp2_hash_s()
1282 CBB_cleanup(&cbb); in pmbtoken_exp2_hash_s()
1351 STACK_OF(TRUST_TOKEN_PRETOKEN) * pmbtoken_exp2_blind(CBB *cbb, size_t count) { in STACK_OF()
1355 return pmbtoken_blind(&pmbtoken_exp2_method, cbb, count); in STACK_OF()
1358 int pmbtoken_exp2_sign(const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, in pmbtoken_exp2_sign() argument
1364 return pmbtoken_sign(&pmbtoken_exp2_method, key, cbb, cbs, num_requested, in pmbtoken_exp2_sign()