/freebsd-current/contrib/wireguard-tools/ |
H A D | pubkey.c | 17 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 D | encoding.h | 16 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 D | encoding.c | 5 * 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 D | showconf.c | 23 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 D | genkey.c | 78 char base64[WG_KEY_LEN_BASE64]; local 96 key_to_base64(base64, key); 97 puts(base64);
|
/freebsd-current/usr.bin/bintrans/tests/ |
H A D | regress.sh | 7 REGRESSION_TEST(`base64', `uuencode -m regress.in <${SRCDIR}/regress.in') 9 REGRESSION_TEST_ONE(`uudecode -p <${SRCDIR}/regress.base64.in', `base64')
|
H A D | Makefile | 8 ${PACKAGE}FILES+= regress.base64.in regress.base64.out
|
/freebsd-current/contrib/googletest/googlemock/src/ |
H A D | gmock-internal-utils.cc | 206 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 D | Makefile | 11 LINKS+= ${BINDIR}/bintrans ${BINDIR}/base64 17 b64encode.1 base64.1
|
H A D | bintrans.c | 49 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 D | uuencode.c | 86 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 D | uudecode.c | 62 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 D | Makefile | 6 base64.o \
|
/freebsd-current/contrib/netbsd-tests/usr.bin/gzip/ |
H A D | t_gzip.sh | 60 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 D | Makefile | 12 SRCS= base64.c \
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | 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[ [all...] |
/freebsd-current/crypto/openssl/crypto/evp/ |
H A D | 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...] |
/freebsd-current/crypto/heimdal/kcm/ |
H A D | headers.h | 77 #include <base64.h>
|
/freebsd-current/crypto/heimdal/lib/ipc/ |
H A D | hi_locl.h | 60 #include <base64.h>
|
/freebsd-current/libexec/dma/dmagent/ |
H A D | Makefile | 9 base64.c \
|
/freebsd-current/kerberos5/lib/libroken/ |
H A D | Makefile | 9 base64.h \ 19 SRCS= base64.c \
|
/freebsd-current/crypto/heimdal/kdc/ |
H A D | headers.h | 89 #include <base64.h>
|
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | base64-test.c | 37 #include <base64.h>
|
/freebsd-current/lib/libiconv_modules/UTF7/ |
H A D | citrus_utf7.c | 64 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 D | fido2-unprot.sh | 67 STUB_HASH=$(echo -n "" | openssl sha256 -binary | base64)
|