/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/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 78 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 79 if (ctx->base64 == NULL) { in b64_new() 100 EVP_ENCODE_CTX_free(ctx->base64); in b64_free() 130 EVP_DecodeInit(ctx->base64); in b64_read() 209 k = EVP_DecodeUpdate(ctx->base64, in b64_read() 213 EVP_DecodeInit(ctx->base64); in b64_read() 222 EVP_DecodeInit(ctx->base64); in b64_read() 286 i = EVP_DecodeUpdate(ctx->base64, in b64_read() 346 EVP_EncodeInit(ctx->base64); in b64_write() [all …]
|
/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 33 BIO_flush() on a base64 BIO that is being written through is 44 Because of the format of base64 encoding the end of the encoded 49 BIO_f_base64() returns the base64 BIO method. 90 The ambiguity of EOF in base64 encoded data can cause additional 91 data following the base64 encoded block to be misinterpreted.
|
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/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/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/doc/man1/ |
H A D | openssl-rand.pod.in | 13 [B<-base64>] 42 =item B<-base64> 44 Perform base64 encoding on the output.
|
H A D | openssl-enc.pod.in | 21 [B<-base64>] 97 the data is base64 encoded after encryption. If decryption is set then 98 the input data is base64 decoded before being decrypted. 104 =item B<-base64> 110 If the B<-a> option is set then base64 encoding produces output without any 111 newline character, and base64 decoding does not require any newlines. 306 base64 Base 64 412 Just base64 encode a binary file: 414 openssl base64 -in file.bin -out file.b64 418 openssl base64 -d -in file.b64 -out file.bin [all …]
|
/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()
|
/freebsd/crypto/openssl/apps/ |
H A D | enc.c | 132 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; in enc_main() local 147 base64 = 1; in enc_main() 219 base64 = 1; in enc_main() 323 if (base64 && bsize < 80) in enc_main() 331 if (base64) { in enc_main() 417 if (base64) { in enc_main()
|