Lines Matching refs:bconn

2579 static void jpake_send_step1(BIO *bconn, JPAKE_CTX *ctx)
2585 jpake_send_part(bconn, &s1.p1);
2586 jpake_send_part(bconn, &s1.p2);
2587 (void)BIO_flush(bconn);
2591 static void jpake_send_step2(BIO *bconn, JPAKE_CTX *ctx)
2597 jpake_send_part(bconn, &s2);
2598 (void)BIO_flush(bconn);
2602 static void jpake_send_step3a(BIO *bconn, JPAKE_CTX *ctx)
2608 BIO_write(bconn, s3a.hhk, sizeof(s3a.hhk));
2609 (void)BIO_flush(bconn);
2613 static void jpake_send_step3b(BIO *bconn, JPAKE_CTX *ctx)
2619 BIO_write(bconn, s3b.hk, sizeof(s3b.hk));
2620 (void)BIO_flush(bconn);
2624 static void readbn(BIGNUM **bn, BIO *bconn)
2629 l = BIO_gets(bconn, buf, sizeof(buf));
2636 static void jpake_receive_part(JPAKE_STEP_PART *p, BIO *bconn)
2638 readbn(&p->gx, bconn);
2639 readbn(&p->zkpx.gr, bconn);
2640 readbn(&p->zkpx.b, bconn);
2643 static void jpake_receive_step1(JPAKE_CTX *ctx, BIO *bconn)
2648 jpake_receive_part(&s1.p1, bconn);
2649 jpake_receive_part(&s1.p2, bconn);
2657 static void jpake_receive_step2(JPAKE_CTX *ctx, BIO *bconn)
2662 jpake_receive_part(&s2, bconn);
2670 static void jpake_receive_step3a(JPAKE_CTX *ctx, BIO *bconn)
2676 l = BIO_read(bconn, s3a.hhk, sizeof(s3a.hhk));
2685 static void jpake_receive_step3b(JPAKE_CTX *ctx, BIO *bconn)
2691 l = BIO_read(bconn, s3b.hk, sizeof(s3b.hk));
2703 BIO *bconn;
2709 bconn = BIO_new(BIO_f_buffer());
2710 BIO_push(bconn, conn);
2712 jpake_send_step1(bconn, ctx);
2713 jpake_receive_step1(ctx, bconn);
2714 jpake_send_step2(bconn, ctx);
2715 jpake_receive_step2(ctx, bconn);
2716 jpake_send_step3a(bconn, ctx);
2717 jpake_receive_step3b(ctx, bconn);
2726 BIO_pop(bconn);
2727 BIO_free(bconn);
2735 BIO *bconn;
2741 bconn = BIO_new(BIO_f_buffer());
2742 BIO_push(bconn, conn);
2744 jpake_receive_step1(ctx, bconn);
2745 jpake_send_step1(bconn, ctx);
2746 jpake_receive_step2(ctx, bconn);
2747 jpake_send_step2(bconn, ctx);
2748 jpake_receive_step3a(ctx, bconn);
2749 jpake_send_step3b(bconn, ctx);
2758 BIO_pop(bconn);
2759 BIO_free(bconn);