HomeSort by: relevance | last modified time | path
    Searched defs:base64 (Results 1 - 25 of 30) sorted by relevancy

1 2

  /src/sbin/cgdconfig/
cgdparse.y 62 %type <string> stringlit base64 intstr tokstr
124 bits: base64 { $$ = bits_decode_d($1); }
126 base64: stringlit label
127 | base64 stringlit { $$ = string_add_d($1, $2); }
  /src/usr.sbin/wg-keygen/
wg-keygen.c 81 base64(uint8_t key[KEY_LEN]) function
105 printf("%s\n", base64(key));
111 printf("%s\n", base64(key));
131 printf("%s\n", base64(pubkey));
  /src/usr.bin/uudecode/
uudecode.c 75 static int base64; variable
90 base64 = 1;
139 warnx("%s: no \"%s\" line", inputname, base64 ?
140 "begin-base64" : "begin");
144 if (strncmp(p, "begin-base64", 12) == 0) {
145 base64 = 1;
160 base64 ? "begin-base64" : "begin");
167 base64 ? "begin-base64" : "begin")
    [all...]
  /src/usr.bin/uuencode/
uuencode.c 71 int base64, ch, mode; local
74 base64 = 0;
81 base64 = 1;
107 if (base64) {
108 (void)printf("begin-base64 %o %s\n", mode, *argv);
126 * copy from in to out, encoding in base64 as you go along.
146 errx(1, "b64_ntop: error encoding base64");
  /src/external/bsd/libarchive/dist/libarchive/
archive_write_add_filter_b64encode.c 64 static const char base64[] = { variable
168 archive_string_sprintf(&state->encoded_buff, "begin-base64 %o %s\n",
182 archive_strappend_char(as, base64[c]);
184 archive_strappend_char(as, base64[c]);
186 archive_strappend_char(as, base64[c]);
188 archive_strappend_char(as, base64[c]);
192 archive_strappend_char(as, base64[c]);
195 archive_strappend_char(as, base64[c]);
200 archive_strappend_char(as, base64[c]);
202 archive_strappend_char(as, base64[c])
    [all...]
archive_read_support_filter_uu.c 139 static const unsigned char base64[256] = { variable
288 else if (len -nl >= 18 && memcmp(b, "begin-base64 ", 13) == 0)
342 /* "begin-base64 " */
344 if (!base64[*b++])
354 if (avail > 0 && base64[*b])
568 memcmp(b, "begin-base64 ", 13) == 0)
680 if (!base64[b[0]] || !base64[b[1]])
690 if (!base64[*b])
699 if (!base64[*b]
    [all...]
archive_write_set_format_xar.c 1173 * beyond Latin-1 are stored base64-encoded in the XAR TOC.
1228 "enctype", "base64");
3602 static const wchar_t base64[] = { variable
3620 archive_wstrappend_wchar(as, base64[c]);
3622 archive_wstrappend_wchar(as, base64[c]);
3624 archive_wstrappend_wchar(as, base64[c]);
3626 archive_wstrappend_wchar(as, base64[c]);
3630 archive_wstrappend_wchar(as, base64[c]);
3633 archive_wstrappend_wchar(as, base64[c]);
3638 archive_wstrappend_wchar(as, base64[c])
    [all...]
  /src/crypto/external/apache2/openssl/dist/crypto/evp/
bio_b64.c 41 EVP_ENCODE_CTX *base64; member in struct:b64_struct
48 "base64 encoding",
75 ctx->base64 = EVP_ENCODE_CTX_new();
76 if (ctx->base64 == NULL) {
98 EVP_ENCODE_CTX_free(ctx->base64);
108 * aren't exclusively composed of valid Base64 characters (followed by <CRLF>
109 * or <LF>). Once a valid Base64 line is found, `ctx->start` is set to 0 and
110 * lines are processed until EOF or the first line that contains invalid Base64
136 EVP_DecodeInit(ctx->base64);
178 /* Incomplete final Base64 chunk in the decoder is an error *
    [all...]
  /src/external/mpl/bind/dist/lib/isc/
base64.c 1 /* $NetBSD: base64.c,v 1.10 2026/01/29 18:37:54 christos Exp $ */
20 #include <isc/base64.h>
37 static const char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw" variable
53 buf[0] = base64[(source->base[0] >> 2) & 0x3f];
54 buf[1] = base64[((source->base[0] << 4) & 0x30) |
56 buf[2] = base64[((source->base[1] << 2) & 0x3c) |
58 buf[3] = base64[source->base[2] & 0x3f];
70 buf[0] = base64[(source->base[0] >> 2) & 0x3f];
71 buf[1] = base64[((source->base[0] << 4) & 0x30) |
73 buf[2] = base64[((source->base[1] << 2) & 0x3c)]
    [all...]
  /src/external/mpl/dhcp/bind/dist/lib/isc/
base64.c 1 /* $NetBSD: base64.c,v 1.1 2024/02/18 20:57:48 christos Exp $ */
20 #include <isc/base64.h>
44 static const char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw" variable
60 buf[0] = base64[(source->base[0] >> 2) & 0x3f];
61 buf[1] = base64[((source->base[0] << 4) & 0x30) |
63 buf[2] = base64[((source->base[1] << 2) & 0x3c) |
65 buf[3] = base64[source->base[2] & 0x3f];
77 buf[0] = base64[(source->base[0] >> 2) & 0x3f];
78 buf[1] = base64[((source->base[0] << 4) & 0x30) |
80 buf[2] = base64[((source->base[1] << 2) & 0x3c)]
    [all...]
  /src/crypto/external/bsd/openssl/dist/crypto/evp/
bio_b64.c 41 EVP_ENCODE_CTX *base64; member in struct:b64_struct
48 "base64 encoding",
78 ctx->base64 = EVP_ENCODE_CTX_new();
79 if (ctx->base64 == NULL) {
100 EVP_ENCODE_CTX_free(ctx->base64);
130 EVP_DecodeInit(ctx->base64);
201 * base64 encoded stuff.
209 k = EVP_DecodeUpdate(ctx->base64,
213 EVP_DecodeInit(ctx->base64);
222 EVP_DecodeInit(ctx->base64);
    [all...]
  /src/crypto/external/bsd/openssl.old/dist/crypto/evp/
bio_b64.c 41 EVP_ENCODE_CTX *base64; member in struct:b64_struct
48 "base64 encoding",
80 ctx->base64 = EVP_ENCODE_CTX_new();
81 if (ctx->base64 == NULL) {
102 EVP_ENCODE_CTX_free(ctx->base64);
132 EVP_DecodeInit(ctx->base64);
203 * base64 encoded stuff.
211 k = EVP_DecodeUpdate(ctx->base64,
215 EVP_DecodeInit(ctx->base64);
224 EVP_DecodeInit(ctx->base64);
    [all...]
  /src/lib/libc/citrus/modules/
citrus_utf7.c 65 mode: 1, /* whether base64 mode */
136 static const char base64[] = variable
358 psenc->ch[psenc->chlen++] = base64[i];
382 psenc->ch[psenc->chlen++] = base64[i];
456 psenc->ch[psenc->chlen++] = base64[pos];
549 FILL(base64, (s - base64) + 1);
  /src/libexec/ftpd/
cmds.c 551 * Encode len bytes starting at clear using base64 encoding into encoded,
559 static const char base64[] = local
571 *e++ = base64[(c[0] >> 2) & 0x3f];
572 *e++ = base64[((c[0] << 4) & 0x30) | ((c[1] >> 4) & 0x0f)];
573 *e++ = base64[((c[1] << 2) & 0x3c) | ((c[2] >> 6) & 0x03)];
574 *e++ = base64[(c[2]) & 0x3f];
578 *e++ = base64[(c[0] >> 2) & 0x3f];
579 *e++ = base64[((c[0] << 4) & 0x30) |
581 *e++ = (i > 1) ? base64[(c[1] << 2) & 0x3c] : termchar;
  /src/share/examples/refuse/ian/libfetch/
http.c 35 * The following copyright applies to the base64 code:
565 * Base64 encoding
570 static const char base64[] = local
587 dst[0] = base64[(t >> 18) & 0x3f];
588 dst[1] = base64[(t >> 12) & 0x3f];
589 dst[2] = base64[(t >> 6) & 0x3f];
590 dst[3] = base64[(t >> 0) & 0x3f];
598 dst[0] = base64[(t >> 18) & 0x3f];
599 dst[1] = base64[(t >> 12) & 0x3f];
600 dst[2] = base64[(t >> 6) & 0x3f]
    [all...]
  /src/crypto/external/bsd/openssl/dist/apps/
enc.c 79 {"a", OPT_A, '-', "Base64 encode/decode, depending on encryption flag"},
80 {"base64", OPT_A, '-', "Same as option -a"},
82 "Used with -[base64|a] to specify base64 buffer as a single line"},
132 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; local
146 if (strcmp(argv[0], "base64") == 0)
147 base64 = 1;
219 base64 = 1;
322 /* It must be large enough for a base64 encoded line */
323 if (base64 && bsize < 80
    [all...]
  /src/crypto/external/bsd/openssl.old/dist/apps/
enc.c 67 {"a", OPT_A, '-', "Base64 encode/decode, depending on encryption flag"},
68 {"base64", OPT_A, '-', "Same as option -a"},
70 "Used with -[base64|a] to specify base64 buffer as a single line"},
109 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; local
124 if (strcmp(prog, "base64") == 0) {
125 base64 = 1;
202 base64 = 1;
303 /* It must be large enough for a base64 encoded line */
304 if (base64 && bsize < 80
    [all...]
  /src/sys/dev/pci/
pciconf.c 539 pcireg_t base, base64, mask, mask64; local
568 base64 = pci_conf_read(pb->pc, tag, br + 4);
571 pci_conf_write(pb->pc, tag, br + 4, base64);
573 (((uint64_t)base64) << 32) | base);
  /src/crypto/external/apache2/openssl/dist/apps/
enc.c 106 { "a", OPT_A, '-', "Base64 encode/decode, depending on encryption flag" },
107 { "base64", OPT_A, '-', "Same as option -a" },
109 "Used with -[base64|a] to specify base64 buffer as a single line" },
162 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; local
188 if (strcmp(argv[0], "base64") == 0)
189 base64 = 1;
270 base64 = 1;
393 /* It must be large enough for a base64 encoded line */
394 if (base64 && bsize < 80
    [all...]
  /src/crypto/external/bsd/netpgp/dist/src/lib/
writer.c 550 base64_t *base64; local
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
603 base64_t *base64; local
688 base64_t *base64; local
721 base64_t *base64; local
766 base64_t *base64; local
800 base64_t *base64; local
878 base64_t *base64; local
    [all...]
reader.c 284 BASE64,
305 /* base64 stuff */
920 "Badly formed base64");
926 "%s", "Badly terminated base64 (2)");
935 "%s", "Badly terminated base64 (3)");
944 "%s", "Badly terminated base64");
950 "%s", "Badly terminated base64 (4)");
977 "%s", "No newline at base64 end");
983 "%s", "No checksum at base64 end");
1008 "%s", "Bad base64 trailer (2)")
1046 base64(dearmour_t *dearmour) function
    [all...]
  /src/external/bsd/fetch/dist/libfetch/
http.c 35 * The following copyright applies to the base64 code:
613 * Base64 encoding
618 static const char base64[] = local
634 dst[0] = base64[(t >> 18) & 0x3f];
635 dst[1] = base64[(t >> 12) & 0x3f];
636 dst[2] = base64[(t >> 6) & 0x3f];
637 dst[3] = base64[(t >> 0) & 0x3f];
645 dst[0] = base64[(t >> 18) & 0x3f];
646 dst[1] = base64[(t >> 12) & 0x3f];
647 dst[2] = base64[(t >> 6) & 0x3f]
    [all...]
  /src/external/bsd/ppp/dist/pppd/
eap.c 367 static char base64[] = variable
385 *outp++ = base64[(bs->bs_bits >> 18) & 0x3F];
386 *outp++ = base64[(bs->bs_bits >> 12) & 0x3F];
387 *outp++ = base64[(bs->bs_bits >> 6) & 0x3F];
388 *outp++ = base64[bs->bs_bits & 0x3F];
403 *outp++ = base64[(bs->bs_bits >> 2) & 0x3F];
404 *outp++ = base64[(bs->bs_bits << 4) & 0x3F];
407 *outp++ = base64[(bs->bs_bits >> 10) & 0x3F];
408 *outp++ = base64[(bs->bs_bits >> 4) & 0x3F];
409 *outp++ = base64[(bs->bs_bits << 2) & 0x3F]
    [all...]
  /src/external/bsd/wpa/dist/src/common/
dpp_crypto.c 13 #include "utils/base64.h"
336 char *base64 = NULL; local
366 base64 = base64_encode(wpabuf_head(der), wpabuf_len(der), &len);
369 if (!base64)
371 pos = base64;
380 bi->pk = base64;
383 os_free(base64);
2179 * since challengePassword is using ASCII (base64 encoded). */
2192 "DPP: Could not base64 decode challengePassword");
  /src/external/gpl3/binutils/dist/bfd/
coffcode.h 3664 static const char base64[] =
3675 section.s_name[i] = base64[off & 0x3f];
3663 static const char base64[] = local

Completed in 58 milliseconds

1 2