Lines Matching defs:bconn

2545 static void jpake_send_step1(BIO *bconn, JPAKE_CTX *ctx)
2551 jpake_send_part(bconn, &s1.p1);
2552 jpake_send_part(bconn, &s1.p2);
2553 (void)BIO_flush(bconn);
2557 static void jpake_send_step2(BIO *bconn, JPAKE_CTX *ctx)
2563 jpake_send_part(bconn, &s2);
2564 (void)BIO_flush(bconn);
2568 static void jpake_send_step3a(BIO *bconn, JPAKE_CTX *ctx)
2574 BIO_write(bconn, s3a.hhk, sizeof s3a.hhk);
2575 (void)BIO_flush(bconn);
2579 static void jpake_send_step3b(BIO *bconn, JPAKE_CTX *ctx)
2585 BIO_write(bconn, s3b.hk, sizeof s3b.hk);
2586 (void)BIO_flush(bconn);
2590 static void readbn(BIGNUM **bn, BIO *bconn)
2595 l = BIO_gets(bconn, buf, sizeof buf);
2602 static void jpake_receive_part(JPAKE_STEP_PART *p, BIO *bconn)
2604 readbn(&p->gx, bconn);
2605 readbn(&p->zkpx.gr, bconn);
2606 readbn(&p->zkpx.b, bconn);
2609 static void jpake_receive_step1(JPAKE_CTX *ctx, BIO *bconn)
2614 jpake_receive_part(&s1.p1, bconn);
2615 jpake_receive_part(&s1.p2, bconn);
2624 static void jpake_receive_step2(JPAKE_CTX *ctx, BIO *bconn)
2629 jpake_receive_part(&s2, bconn);
2638 static void jpake_receive_step3a(JPAKE_CTX *ctx, BIO *bconn)
2644 l = BIO_read(bconn, s3a.hhk, sizeof s3a.hhk);
2654 static void jpake_receive_step3b(JPAKE_CTX *ctx, BIO *bconn)
2660 l = BIO_read(bconn, s3b.hk, sizeof s3b.hk);
2673 BIO *bconn;
2679 bconn = BIO_new(BIO_f_buffer());
2680 BIO_push(bconn, conn);
2682 jpake_send_step1(bconn, ctx);
2683 jpake_receive_step1(ctx, bconn);
2684 jpake_send_step2(bconn, ctx);
2685 jpake_receive_step2(ctx, bconn);
2686 jpake_send_step3a(bconn, ctx);
2687 jpake_receive_step3b(ctx, bconn);
2693 BIO_pop(bconn);
2694 BIO_free(bconn);
2702 BIO *bconn;
2708 bconn = BIO_new(BIO_f_buffer());
2709 BIO_push(bconn, conn);
2711 jpake_receive_step1(ctx, bconn);
2712 jpake_send_step1(bconn, ctx);
2713 jpake_receive_step2(ctx, bconn);
2714 jpake_send_step2(bconn, ctx);
2715 jpake_receive_step3a(ctx, bconn);
2716 jpake_send_step3b(bconn, ctx);
2722 BIO_pop(bconn);
2723 BIO_free(bconn);