Lines Matching refs:base64

550 	base64_t	*base64;
553 base64 = pgp_writer_get_arg(writer);
555 base64->checksum = pgp_crc24(base64->checksum, src[n]);
556 if (base64->pos == 0) {
565 base64->t = (src[n++] & 3) << 4;
566 base64->pos = 1;
567 } else if (base64->pos == 1) {
569 base64->t += (unsigned)src[n] >> 4;
570 if (!stacked_write(writer, &b64map[base64->t], 1,
576 base64->t = (src[n++] & 0xf) << 2;
577 base64->pos = 2;
578 } else if (base64->pos == 2) {
580 base64->t += (unsigned)src[n] >> 6;
581 if (!stacked_write(writer, &b64map[base64->t], 1,
592 base64->pos = 0;
603 base64_t *base64;
606 base64 = pgp_writer_get_arg(writer);
607 if (base64->pos) {
608 if (!stacked_write(writer, &b64map[base64->t], 1, errors)) {
611 if (base64->pos == 1 &&
615 if (base64->pos == 2 &&
625 base64->pos = 0; /* get ready to write the checksum */
627 c[0] = base64->checksum >> 16;
628 c[1] = base64->checksum >> 8;
629 c[2] = base64->checksum;
688 base64_t *base64;
704 base64 = calloc(1, sizeof(*base64));
705 if (!base64) {
709 base64->checksum = CRC24_INIT;
711 generic_destroyer, base64);
721 base64_t *base64;
724 base64 = pgp_writer_get_arg(writer);
725 if (base64->pos) {
726 if (!stacked_write(writer, &b64map[base64->t], 1, errors)) {
729 if (base64->pos == 1 &&
733 if (base64->pos == 2 &&
743 base64->pos = 0; /* get ready to write the checksum */
745 c[0] = base64->checksum >> 16;
746 c[1] = base64->checksum >> 8;
747 c[2] = base64->checksum;
766 base64_t *base64;
778 if ((base64 = calloc(1, sizeof(*base64))) == NULL) {
783 base64->checksum = CRC24_INIT;
786 base64);
800 base64_t *base64;
818 base64 = pgp_writer_get_arg(writer);
819 if (base64->pos) {
820 if (!stacked_write(writer, &b64map[base64->t], 1,
824 if (base64->pos == 1 && !stacked_write(writer, "==", 2,
828 if (base64->pos == 2 && !stacked_write(writer, "=", 1,
837 base64->pos = 0; /* get ready to write the checksum */
838 c[0] = base64->checksum >> 16;
839 c[1] = base64->checksum >> 8;
840 c[2] = base64->checksum;
878 base64_t *base64;
910 if ((base64 = calloc(1, sizeof(*base64))) == NULL) {
915 base64->checksum = CRC24_INIT;
917 generic_destroyer, base64);