Lines Matching refs:eng

123 	br_hmac_drbg_generate(&ctx->eng.rng, rpms, sizeof rpms);  in do_rsa_decrypt()
129 br_ssl_engine_compute_master(&ctx->eng, prf_id, epms, 48); in do_rsa_decrypt()
157 br_hmac_drbg_generate(&ctx->eng.rng, rpms, xcoor_len); in ecdh_common()
163 br_ssl_engine_compute_master(&ctx->eng, prf_id, xcoor, xcoor_len); in ecdh_common()
203 xc = ctx->eng.x509ctx; in do_static_ecdh()
228 hf = br_multihash_getimpl(&ctx->eng.mhash, br_md5_ID); in hash_data()
235 hf = br_multihash_getimpl(&ctx->eng.mhash, br_sha1_ID); in hash_data()
245 hf = br_multihash_getimpl(&ctx->eng.mhash, hash_id); in hash_data()
272 if (!((ctx->eng.iec->supported_curves >> curve) & 1)) { in do_ecdhe_part1()
275 ctx->eng.ecdhe_curve = curve; in do_ecdhe_part1()
285 order = ctx->eng.iec->order(curve, &olen); in do_ecdhe_part1()
290 br_hmac_drbg_generate(&ctx->eng.rng, ctx->ecdhe_key, olen); in do_ecdhe_part1()
298 glen = ctx->eng.iec->mulgen(ctx->eng.ecdhe_point, in do_ecdhe_part1()
300 ctx->eng.ecdhe_point_len = glen; in do_ecdhe_part1()
305 memcpy(ctx->eng.pad, ctx->eng.client_random, 32); in do_ecdhe_part1()
306 memcpy(ctx->eng.pad + 32, ctx->eng.server_random, 32); in do_ecdhe_part1()
307 ctx->eng.pad[64 + 0] = 0x03; in do_ecdhe_part1()
308 ctx->eng.pad[64 + 1] = 0x00; in do_ecdhe_part1()
309 ctx->eng.pad[64 + 2] = curve; in do_ecdhe_part1()
310 ctx->eng.pad[64 + 3] = ctx->eng.ecdhe_point_len; in do_ecdhe_part1()
311 memcpy(ctx->eng.pad + 64 + 4, in do_ecdhe_part1()
312 ctx->eng.ecdhe_point, ctx->eng.ecdhe_point_len); in do_ecdhe_part1()
313 hv_len = 64 + 4 + ctx->eng.ecdhe_point_len; in do_ecdhe_part1()
316 hv_len = hash_data(ctx, ctx->eng.pad, algo_id & 0xFF, in do_ecdhe_part1()
317 ctx->eng.pad, hv_len); in do_ecdhe_part1()
324 algo_id, ctx->eng.pad, hv_len, sizeof ctx->eng.pad); in do_ecdhe_part1()
340 curve = ctx->eng.ecdhe_curve; in do_ecdhe_part2()
345 ctl = ctx->eng.iec->mul(cpoint, cpoint_len, in do_ecdhe_part2()
347 xoff = ctx->eng.iec->xoff(curve, &xlen); in do_ecdhe_part2()
412 xc = ctx->eng.x509ctx; in verify_CV_sig()
423 if (ctx->eng.irsavrfy == 0) { in verify_CV_sig()
426 if (!ctx->eng.irsavrfy(ctx->eng.pad, sig_len, in verify_CV_sig()
433 if (ctx->eng.iecdsa == 0) { in verify_CV_sig()
436 if (!ctx->eng.iecdsa(ctx->eng.iec, in verify_CV_sig()
438 &pk->key.ec, ctx->eng.pad, sig_len)) in verify_CV_sig()