Lines Matching full:q2
32 BIGNUM *q2; member
42 BN_free(ctx->q2); in free_q1q2_ctx()
53 ctx->q2 = BN_new(); in alloc_q1q2_ctx()
56 !ctx->q2) { in alloc_q1q2_ctx()
81 uint8_t *q2) in calc_q1q2() argument
103 if (!BN_mul(ctx.q2, ctx.s, ctx.qr, ctx.bn_ctx)) in calc_q1q2()
106 if (!BN_div(ctx.q2, NULL, ctx.q2, ctx.m, ctx.bn_ctx)) in calc_q1q2()
109 if (BN_num_bytes(ctx.q2) > SGX_MODULUS_SIZE) { in calc_q1q2()
110 fprintf(stderr, "Too large Q2 %d bytes\n", in calc_q1q2()
111 BN_num_bytes(ctx.q2)); in calc_q1q2()
117 len = BN_bn2bin(ctx.q2, q2); in calc_q1q2()
118 reverse_bytes(q2, len); in calc_q1q2()
375 sigstruct->q2)) in encl_measure()