Home
last modified time | relevance | path

Searched refs:base64 (Results 1 – 25 of 98) sorted by relevance

1234

/freebsd/contrib/wireguard-tools/
H A Dpubkey.c17 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 Dencoding.c24 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 Dshowconf.c23 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 Dgenkey.c78 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 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);
/freebsd/contrib/googletest/googlemock/src/
H A Dgmock-internal-utils.cc207 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 Darchive_write_add_filter_b64encode.c64 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 Darchive_read_support_filter_uu.c139 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 Dbio_b64.c41 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 DBIO_f_base64.pod5 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 DPEM_read_bio_ex.pod22 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 Duudecode.c62 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 Duuencode.c86 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 Dbintrans.c49 uuencode, uudecode, b64encode, b64decode, base64, qp enumerator
72 case base64: in main()
98 DESIGNATE(base64), in search()
H A DMakefile10 LINKS+= ${BINDIR}/bintrans ${BINDIR}/base64
16 b64encode.1 base64.1
/freebsd/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/contrib/libfido2/tools/
H A DCMakeLists.txt32 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 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 DMakefile7 ${PACKAGE}FILES+= regress.base64.in regress.base64.out
/freebsd/crypto/openssh/
H A D.depend5 …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 Dopenssl-rand.pod.in13 [B<-base64>]
42 =item B<-base64>
44 Perform base64 encoding on the output.
H A Dopenssl-enc.pod.in21 [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 Dssl39 # 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 Dcitrus_utf7.c110 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 Denc.c132 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()

1234