Searched refs:base64 (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-current/contrib/wireguard-tools/
H A Dpubkey.c17 char base64[WG_KEY_LEN_BASE64]; local
25 if (fread(base64, 1, sizeof(base64) - 1, stdin) != sizeof(base64) - 1) {
30 base64[WG_KEY_LEN_BASE64 - 1] = '\0';
42 if (!key_from_base64(key, base64)) {
47 key_to_base64(base64, key);
48 puts(base64);
H A Dencoding.h16 void key_to_base64(char base64[static WG_KEY_LEN_BASE64], const uint8_t key[static WG_KEY_LEN]);
17 bool key_from_base64(uint8_t key[static WG_KEY_LEN], const char *base64);
H A Dencoding.c5 * This is a specialized constant-time base64/hex implementation that resists side-channel attacks.
24 void key_to_base64(char base64[static WG_KEY_LEN_BASE64], const uint8_t key[static WG_KEY_LEN])
29 encode_base64(&base64[i * 4], &key[i * 3]);
30 encode_base64(&base64[i * 4], (const uint8_t[]){ key[i * 3 + 0], key[i * 3 + 1], 0 });
31 base64[WG_KEY_LEN_BASE64 - 2] = '=';
32 base64[WG_KEY_LEN_BASE64 - 1] = '\0';
50 bool key_from_base64(uint8_t key[static WG_KEY_LEN], const char *base64) argument
56 if (strlen(base64) != WG_KEY_LEN_BASE64 - 1 || base64[WG_KEY_LEN_BASE64 - 2] != '=')
60 val = decode_base64(&base64[
[all...]
H A Dshowconf.c23 char base64[WG_KEY_LEN_BASE64]; local
46 key_to_base64(base64, device->private_key);
47 printf("PrivateKey = %s\n", base64);
51 key_to_base64(base64, peer->public_key);
52 printf("[Peer]\nPublicKey = %s\n", base64);
54 key_to_base64(base64, peer->preshared_key);
55 printf("PresharedKey = %s\n", base64);
H A Dgenkey.c78 char base64[WG_KEY_LEN_BASE64]; local
96 key_to_base64(base64, key);
97 puts(base64);
/freebsd-current/usr.bin/bintrans/tests/
H A Dregress.sh7 REGRESSION_TEST(`base64', `uuencode -m regress.in <${SRCDIR}/regress.in')
9 REGRESSION_TEST_ONE(`uudecode -p <${SRCDIR}/regress.base64.in', `base64')
H A DMakefile8 ${PACKAGE}FILES+= regress.base64.in regress.base64.out
/freebsd-current/contrib/googletest/googlemock/src/
H A Dgmock-internal-utils.cc206 constexpr char UnBase64Impl(char c, const char* const base64, char carry) { argument
207 return *base64 == 0 ? static_cast<char>(65)
208 : *base64 == c
210 : UnBase64Impl(c, base64 + 1, static_cast<char>(carry + 1));
215 const char* const base64) {
217 {UnBase64Impl(UndoWebSafeEncoding(static_cast<char>(I)), base64, 0)...}};
220 constexpr std::array<char, 256> UnBase64(const char* const base64) { argument
221 return UnBase64Impl(MakeIndexSequence<256>{}, base64);
214 UnBase64Impl(IndexSequence<I...>, const char* const base64) argument
/freebsd-current/usr.bin/bintrans/
H A DMakefile11 LINKS+= ${BINDIR}/bintrans ${BINDIR}/base64
17 b64encode.1 base64.1
H A Dbintrans.c49 uuencode, uudecode, b64encode, b64decode, base64, qp enumerator in enum:coders
72 case base64:
82 " %1$s <base64> ...\n"
98 DESIGNATE(base64),
111 (void)fputs("usage: base64 [-w col | --wrap=col] "
113 " base64 --help\n"
114 " base64 --version\n", stderr);
121 (void)fputs("FreeBSD base64\n", stderr);
H A Duuencode.c86 bool base64; local
90 base64 = false;
94 base64 = 1;
99 base64 = true;
143 if (base64)
156 * Copy from in to out, encoding in base64 as you go along.
173 fprintf(output, "begin-base64 %o %s\n", mode, *av);
177 errx(1, "b64_ntop: error encoding base64");
H A Duudecode.c62 static bool base64, cflag, iflag, oflag, pflag, rflag, sflag; variable
73 base64 = 1;
93 base64 = true;
106 base64 = true;
166 if (base64)
195 base64 = false;
201 if (strncmp(p, "begin-base64 ", 13) == 0) {
202 base64 = true;
305 if (base64)
473 return (checkout(checkend(inbuf, "====", "error decoding base64 inpu
[all...]
/freebsd-current/contrib/wpa/src/utils/
H A DMakefile6 base64.o \
/freebsd-current/contrib/netbsd-tests/usr.bin/gzip/
H A Dt_gzip.sh60 begin-base64 644 truncated.gz
77 begin-base64 644 crcerror.gz
94 begin-base64 644 good.gz
/freebsd-current/usr.sbin/wpa/src/utils/
H A DMakefile12 SRCS= base64.c \
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_b64encode.c64 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[
[all...]
/freebsd-current/crypto/openssl/crypto/evp/
H A Dbio_b64.c41 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...]
/freebsd-current/crypto/heimdal/kcm/
H A Dheaders.h77 #include <base64.h>
/freebsd-current/crypto/heimdal/lib/ipc/
H A Dhi_locl.h60 #include <base64.h>
/freebsd-current/libexec/dma/dmagent/
H A DMakefile9 base64.c \
/freebsd-current/kerberos5/lib/libroken/
H A DMakefile9 base64.h \
19 SRCS= base64.c \
/freebsd-current/crypto/heimdal/kdc/
H A Dheaders.h89 #include <base64.h>
/freebsd-current/crypto/heimdal/lib/roken/
H A Dbase64-test.c37 #include <base64.h>
/freebsd-current/lib/libiconv_modules/UTF7/
H A Dcitrus_utf7.c64 mode: 1, /* whether base64 mode */
110 static const char base64[] = variable
312 psenc->ch[psenc->chlen++] = base64[i];
336 psenc->ch[psenc->chlen++] = base64[i];
400 psenc->ch[psenc->chlen++] = base64[pos];
479 FILL(base64, (s - base64) + 1);
/freebsd-current/contrib/libfido2/tools/
H A Dfido2-unprot.sh67 STUB_HASH=$(echo -n "" | openssl sha256 -binary | base64)

Completed in 296 milliseconds

123