Lines Matching full:bconn
2541 static void jpake_send_step1(BIO *bconn, JPAKE_CTX *ctx)
2547 jpake_send_part(bconn, &s1.p1);
2548 jpake_send_part(bconn, &s1.p2);
2549 (void)BIO_flush(bconn);
2553 static void jpake_send_step2(BIO *bconn, JPAKE_CTX *ctx)
2559 jpake_send_part(bconn, &s2);
2560 (void)BIO_flush(bconn);
2564 static void jpake_send_step3a(BIO *bconn, JPAKE_CTX *ctx)
2570 BIO_write(bconn, s3a.hhk, sizeof s3a.hhk);
2571 (void)BIO_flush(bconn);
2575 static void jpake_send_step3b(BIO *bconn, JPAKE_CTX *ctx)
2581 BIO_write(bconn, s3b.hk, sizeof s3b.hk);
2582 (void)BIO_flush(bconn);
2586 static void readbn(BIGNUM **bn, BIO *bconn)
2591 l = BIO_gets(bconn, buf, sizeof buf);
2598 static void jpake_receive_part(JPAKE_STEP_PART *p, BIO *bconn)
2600 readbn(&p->gx, bconn);
2601 readbn(&p->zkpx.gr, bconn);
2602 readbn(&p->zkpx.b, bconn);
2605 static void jpake_receive_step1(JPAKE_CTX *ctx, BIO *bconn)
2610 jpake_receive_part(&s1.p1, bconn);
2611 jpake_receive_part(&s1.p2, bconn);
2620 static void jpake_receive_step2(JPAKE_CTX *ctx, BIO *bconn)
2625 jpake_receive_part(&s2, bconn);
2634 static void jpake_receive_step3a(JPAKE_CTX *ctx, BIO *bconn)
2640 l = BIO_read(bconn, s3a.hhk, sizeof s3a.hhk);
2650 static void jpake_receive_step3b(JPAKE_CTX *ctx, BIO *bconn)
2656 l = BIO_read(bconn, s3b.hk, sizeof s3b.hk);
2669 BIO *bconn;
2675 bconn = BIO_new(BIO_f_buffer());
2676 BIO_push(bconn, conn);
2678 jpake_send_step1(bconn, ctx);
2679 jpake_receive_step1(ctx, bconn);
2680 jpake_send_step2(bconn, ctx);
2681 jpake_receive_step2(ctx, bconn);
2682 jpake_send_step3a(bconn, ctx);
2683 jpake_receive_step3b(ctx, bconn);
2689 BIO_pop(bconn);
2690 BIO_free(bconn);
2698 BIO *bconn;
2704 bconn = BIO_new(BIO_f_buffer());
2705 BIO_push(bconn, conn);
2707 jpake_receive_step1(ctx, bconn);
2708 jpake_send_step1(bconn, ctx);
2709 jpake_receive_step2(ctx, bconn);
2710 jpake_send_step2(bconn, ctx);
2711 jpake_receive_step3a(ctx, bconn);
2712 jpake_send_step3b(bconn, ctx);
2718 BIO_pop(bconn);
2719 BIO_free(bconn);