| /freebsd/contrib/wireguard-tools/ |
| H A D | pubkey.c | 17 char base64[WG_KEY_LEN_BASE64]; in pubkey_main() local 25 if (fread(base64, 1, sizeof(base64) - 1, stdin) != sizeof(base64) - 1) { in pubkey_main() 30 base64[WG_KEY_LEN_BASE64 - 1] = '\0'; in pubkey_main() 42 if (!key_from_base64(key, base64)) { in pubkey_main() 47 key_to_base64(base64, key); in pubkey_main() 48 puts(base64); in pubkey_main()
|
| H A D | encoding.c | 24 void key_to_base64(char base64[static WG_KEY_LEN_BASE64], const uint8_t key[static WG_KEY_LEN]) in key_to_base64() 29 encode_base64(&base64[i * 4], &key[i * 3]); in key_to_base64() 30 encode_base64(&base64[i * 4], (const uint8_t[]){ key[i * 3 + 0], key[i * 3 + 1], 0 }); in key_to_base64() 31 base64[WG_KEY_LEN_BASE64 - 2] = '='; in key_to_base64() 32 base64[WG_KEY_LEN_BASE64 - 1] = '\0'; in key_to_base64() 50 bool key_from_base64(uint8_t key[static WG_KEY_LEN], const char *base64) in key_from_base64() argument 56 if (strlen(base64) != WG_KEY_LEN_BASE64 - 1 || base64[WG_KEY_LEN_BASE64 - 2] != '=') in key_from_base64() 60 val = decode_base64(&base64[i * 4]); in key_from_base64() 66 …val = decode_base64((const char[]){ base64[i * 4 + 0], base64[i * 4 + 1], base64[i * 4 + 2], 'A' }… in key_from_base64()
|
| H A D | showconf.c | 23 char base64[WG_KEY_LEN_BASE64]; in showconf_main() local 46 key_to_base64(base64, device->private_key); in showconf_main() 47 printf("PrivateKey = %s\n", base64); in showconf_main() 51 key_to_base64(base64, peer->public_key); in showconf_main() 52 printf("[Peer]\nPublicKey = %s\n", base64); in showconf_main() 54 key_to_base64(base64, peer->preshared_key); in showconf_main() 55 printf("PresharedKey = %s\n", base64); in showconf_main()
|
| H A D | genkey.c | 78 char base64[WG_KEY_LEN_BASE64]; in genkey_main() local 96 key_to_base64(base64, key); in genkey_main() 97 puts(base64); in genkey_main()
|
| 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);
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | BIO_f_base64.pod | 5 BIO_f_base64 - base64 BIO filter 18 BIO_f_base64() returns the base64 BIO method. This is a filter 19 BIO that base64 encodes any data written through it and decodes 28 For reading, the first line of base64 content should be at most 1024 bytes long 34 lines that contain non-base64 content (whitespace is tolerated and ignored) are 37 the newline) and consists of only (at least one) valid base64 characters plus 39 Decoding stops when base64 padding is encountered, a soft end-of-input 41 complete group of 4 valid base64 characters is decoded, or when an error occurs 42 (e.g. due to input characters other than valid base64 or whitespace). 50 BIO_flush() on a base64 BIO that is being written through is [all …]
|
| H A D | EVP_EncodeInit.pod | 8 EVP_DecodeBlock - EVP base64 encode/decode routines 32 The EVP encode routines provide a high-level interface to base64 encoding and 36 bytes of binary data provided 4 bytes of base64 encoded data will be produced 49 For each 48 byte input block encoded 64 bytes of base64 data 105 to 80 base64 characters at a time. 115 0 to indicate that the end of the base64 input has been detected. 116 The soft end-of-input, if present, MUST occur after a multiple of 4 valid base64 122 If any invalid base64 characters are encountered or if the base64 padding 127 ended with base64 padding (B<=>), or that the next 4 byte group starts with the 131 For every 4 valid base64 bytes processed (ignoring whitespace, carriage returns [all …]
|
| H A D | PEM_read_bio_ex.pod | 22 the possibly encrypted data, and the binary data payload (after base64 decoding). 34 If PEM_FLAG_ONLY_B64 is set, all characters are required to be valid base64 35 characters (or newlines); non-base64 characters are treated as end of input.
|
| /freebsd/contrib/googletest/googlemock/src/ |
| H A D | gmock-internal-utils.cc | 207 constexpr char UnBase64Impl(char c, const char* const base64, char carry) { in UnBase64Impl() argument 208 return *base64 == 0 ? static_cast<char>(65) in UnBase64Impl() 209 : *base64 == c in UnBase64Impl() 211 : UnBase64Impl(c, base64 + 1, static_cast<char>(carry + 1)); in UnBase64Impl() 216 const char* const base64) { in UnBase64Impl() argument 218 {UnBase64Impl(UndoWebSafeEncoding(static_cast<char>(I)), base64, 0)...}}; in UnBase64Impl() 221 constexpr std::array<char, 256> UnBase64(const char* const base64) { in UnBase64() argument 222 return UnBase64Impl(std::make_index_sequence<256>{}, base64); in UnBase64()
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_b64encode.c | 64 static const char base64[] = { variable 182 archive_strappend_char(as, base64[c]); in la_b64_encode() 184 archive_strappend_char(as, base64[c]); in la_b64_encode() 186 archive_strappend_char(as, base64[c]); in la_b64_encode() 188 archive_strappend_char(as, base64[c]); in la_b64_encode() 192 archive_strappend_char(as, base64[c]); in la_b64_encode() 195 archive_strappend_char(as, base64[c]); in la_b64_encode() 200 archive_strappend_char(as, base64[c]); in la_b64_encode() 202 archive_strappend_char(as, base64[c]); in la_b64_encode()
|
| H A D | archive_read_support_filter_uu.c | 139 static const unsigned char base64[256] = { variable 344 if (!base64[*b++]) in uudecode_bidder_bid() 354 if (avail > 0 && base64[*b]) in uudecode_bidder_bid() 680 if (!base64[b[0]] || !base64[b[1]]) in uudecode_filter_read() 690 if (!base64[*b]) in uudecode_filter_read() 699 if (!base64[*b]) in uudecode_filter_read()
|
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | bio_b64.c | 41 EVP_ENCODE_CTX *base64; member 75 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 76 if (ctx->base64 == NULL) { in b64_new() 98 EVP_ENCODE_CTX_free(ctx->base64); in b64_free() 136 EVP_DecodeInit(ctx->base64); in b64_read() 180 if (EVP_DecodeFinal(ctx->base64, NULL, &num) < 0) in b64_read() 182 EVP_DecodeInit(ctx->base64); in b64_read() 221 k = EVP_DecodeUpdate(ctx->base64, ctx->buf, &num, p, q - p); in b64_read() 222 EVP_DecodeInit(ctx->base64); in b64_read() 279 i = EVP_DecodeUpdate(ctx->base64, ctx->buf, &ctx->buf_len, in b64_read() [all …]
|
| /freebsd/usr.bin/bintrans/ |
| H A D | uudecode.c | 62 static bool base64, cflag, iflag, oflag, pflag, rflag, sflag; variable 73 base64 = 1; in main_base64_decode() 93 base64 = true; in main_decode() 106 base64 = true; in main_decode() 166 if (base64) in decode() 195 base64 = false; in decode2() 202 base64 = true; in decode2() 305 if (base64) in decode2()
|
| H A D | uuencode.c | 86 bool base64; in main_encode() local 90 base64 = false; in main_encode() 94 base64 = 1; in main_encode() 99 base64 = true; in main_encode() 143 if (base64) in main_encode()
|
| H A D | bintrans.c | 49 uuencode, uudecode, b64encode, b64decode, base64, qp enumerator 72 case base64: in main() 98 DESIGNATE(base64), in search()
|
| H A D | Makefile | 10 LINKS+= ${BINDIR}/bintrans ${BINDIR}/base64 16 b64encode.1 base64.1
|
| /freebsd/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/contrib/libfido2/tools/ |
| H A D | CMakeLists.txt | 32 set_source_files_properties(assert_get.c assert_verify.c base64.c bio.c 42 base64.c 51 base64.c 58 base64.c
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | Makefile.in | 92 base64.o \ 122 $(OUTPRE)base64.$(OBJEXT) \ 163 $(srcdir)/base64.c \ 240 t_base64: t_base64.o base64.o 241 $(CC_LINK) -o $@ t_base64.o base64.o 243 T_JSON_OBJS= t_json.o json.o base64.o k5buf.o zap.o $(PRINTF_ST_OBJ)
|
| /freebsd/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 | 7 ${PACKAGE}FILES+= regress.base64.in regress.base64.out
|
| /freebsd/crypto/openssh/ |
| H A D | .depend | 5 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 6 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 7 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 8 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 9 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 10 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 11 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 12 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 13 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 14 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… [all …]
|
| /freebsd/crypto/openssl/apps/ |
| H A D | enc.c | 162 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; in enc_main() local 189 base64 = 1; in enc_main() 270 base64 = 1; in enc_main() 394 if (base64 && bsize < 80) in enc_main() 401 base64 = 0; in enc_main() 404 base64 = 0; in enc_main() 406 base64 = 0; in enc_main() 408 if (base64) { in enc_main() 526 if (base64) { in enc_main()
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | ssl | 39 # Using the -a or -base64 option, OpenSSL will base64-encode the data. 40 0 string U2FsdGVkX1 openssl enc'd data with salted password, base64 encoded
|
| /freebsd/lib/libiconv_modules/UTF7/ |
| H A D | citrus_utf7.c | 110 static const char base64[] = variable 312 psenc->ch[psenc->chlen++] = base64[i]; in _citrus_UTF7_utf16tomb() 336 psenc->ch[psenc->chlen++] = base64[i]; in _citrus_UTF7_utf16tomb() 400 psenc->ch[psenc->chlen++] = base64[pos]; in _citrus_UTF7_put_state_reset() 479 FILL(base64, (s - base64) + 1); in _citrus_UTF7_encoding_module_init()
|